PdfSizeGdiExtensions.ToSize Method

Converts a PdfSize to a Size.

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

Syntax

C#
public static Size ToSize(
	this PdfSize size
)
VB
<ExtensionAttribute>
Public Shared Function ToSize ( 
	size As PdfSize
) As Size

Parameters

size
Type: BitMiracle.Docotic.Pdf.PdfSize
The PdfSize to convert.

Return Value

Type: Size
Returns a Size structure.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PdfSize. 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).

See Also