CadOptionsForRenderingByWidthAndHeight Method
Initializes new instance of CadOptions class for rendering by width and height.

Namespace: GroupDocs.Viewer.Options
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 20.10
Syntax
public static CadOptions ForRenderingByWidthAndHeight(
	int width,
	int height
)

Parameters

width
Type: SystemInt32
The width of the output result in pixels.
height
Type: SystemInt32
The height of the output result in pixels.

Return Value

Type: CadOptions
New instance of CadOptions class for rendering by width and height.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when width is less or equal to zero.
ArgumentExceptionThrown when height is less or equal to zero.
See Also