PublicExtensionMethods.ToPoints Method

Retrieves width and height of the given PdfPaperSize in points.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public static void ToPoints(
	this PdfPaperSize size,
	out int width,
	out int height
)
VB
<ExtensionAttribute>
Public Shared Sub ToPoints ( 
	size As PdfPaperSize,
	<OutAttribute> ByRef width As Integer,
	<OutAttribute> ByRef height As Integer
)

Parameters

size
Type: BitMiracle.Docotic.Pdf.PdfPaperSize
The size to retrieve the width and height for.
width
Type: System.Int32
The width of the given size in points.
height
Type: System.Int32
The height of the given size in points.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PdfPaperSize. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

One point is 1/72 of inch.

See Also