| 
Document
RenderToSize Method
  | 
 Draws a document page at the specified size into the System.Drawing.Graphics object.
 Namespace:
 Spire.Doc
 Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
 Syntax
Syntax
 
 
public float RenderToSize(
	int pageIndex,
	Graphics graphics,
	float x,
	float y,
	float width,
	float height
)
 
Public Function RenderToSize ( 
	pageIndex As Integer,
	graphics As Graphics,
	x As Single,
	y As Single,
	width As Single,
	height As Single
) As Single
 
public:
float RenderToSize(
	int pageIndex, 
	Graphics^ graphics, 
	float x, 
	float y, 
	float width, 
	float height
)
 
member RenderToSize : 
pageIndex : int * 
graphics : Graphics * 
x : float32 * 
y : float32 * 
width : float32 * 
height : float32 -> float32 
 
 
 
Parameters
 
- 
pageIndex
 
- 
 Type:
 
System
Int32
 
 The 0-based page index.
- 
graphics
 
- 
 Type:
 
System.Drawing
Graphics
 
 The object where to render to.
- 
x
 
- 
 Type:
 
System
Single
 
 The X coordinate (in world units) of the top left corner of the rendered page.
- 
y
 
- 
 Type:
 
System
Single
 
 The Y coordinate (in world units) of the top left corner of the rendered page.
- 
width
 
- 
 Type:
 
System
Single
 
 The maximum width (in world units) that can be occupied by the rendered page.
- 
height
 
- 
 Type:
 
System
Single
 
 The maximum height (in world units) that can be occupied by the rendered page.
Return Value
 
 Type:
 
Single
 
 
 See Also
See Also