Documents for PDF .NET Edition
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Common Namespace / Unit Structure
Fields Properties Methods

In This Topic
    Unit Structure Members
    In This Topic

    The following tables list the members exposed by Unit.

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Fields
     NameDescription
    Public FieldCentimeters per inch as double.  
    Public FieldDIP units per inch as double.  
    Public FieldDisplay units per inch as double.  
    Public FieldDocument units per inch as double.  
    Public FieldMillimeters per inch as double.  
    Public FieldPicas per inch as double.  
    Public FieldPoints per inch as double.  
    Public FieldTwips per inch as double.  
    Public Fieldstatic (Shared in Visual Basic)Represents "0mm" value.  
    Top
    Public Properties
     NameDescription
    Public PropertyGets the unit of measurement of the current unit.  
    Public PropertyGets the value of the current unit (in Units).  
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded. Converts value of this Unit structure to value in specified units of measurement.  
    Public Methodstatic (Shared in Visual Basic)Parses a string and creates a Unit instance from that string, throws an exception if string is invalid.  
    Public Methodstatic (Shared in Visual Basic)Converts a string to a UnitTypeEnum value. The string can be one of the following: "doc", "in", "mm", "pc", "dsp", "pt", "tw", "inhs", "cm", "dip". This method is case-insensitive.  
    Public MethodConverts the current object to a string.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Parses a string and gets Value and Units from that string.  
    Public Methodstatic (Shared in Visual Basic)Converts a UnitTypeEnum value to a string representation as in the following table:
    • Document"doc"
    • Inch"in"
    • Millimeter"mm"
    • Pica"pc"
    • Point"pt"
    • Twip"tw"
    • InHs"inhs"
    • Centimeters"cm"
    • Dip"dip"
     
    Top
    Public Operators
    Overloaded. Converts a unit value to a string.
    Top
    See Also