CodeCarvings.Piczard
GetCanConvertGraphicsUnitToGfxUnit Method
See Also  Send Feedback
CodeCarvings.Piczard Namespace > GfxUnitConverter Class : GetCanConvertGraphicsUnitToGfxUnit Method

unit
The unit of measure to convert.
Gets a value indicating whether it is possible to convert a unit of measure used by the System.Drawing objects (GraphicsUnit) into the corresponding unit of measure used by Piczard (GfxUnit).

Syntax

Visual Basic (Declaration)  
Public Shared Function GetCanConvertGraphicsUnitToGfxUnit( _
   ByVal unit As GraphicsUnit _
) As Boolean
C#  
public static bool GetCanConvertGraphicsUnitToGfxUnit( 
   GraphicsUnit unit
)

Parameters

unit
The unit of measure to convert.

Return Value

true if GraphicsUnit can be converted to GfxUnit; otherwise, false.

Remarks

Not every unit of measure can be converted.
For example "Display" is available only in the GraphicsUnit enumeration but not in GfxUnit.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.