Document Library for UWP | ComponentOne
C1.UWP.Document Assembly / C1.Xaml.Document 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 Fieldstatic (Shared in Visual Basic)  
    Public FieldCentimeters per inch as double.  
    Public FieldCentimeters per inch as float.  
    Public FieldDIP units per inch as double.  
    Public FieldDisplay units per inch as double.  
    Public FieldDisplay units per inch as float.  
    Public FieldDocument units per inch as double.  
    Public FieldDocument units per inch as float.  
    Public Fieldstatic (Shared in Visual Basic)  
    Public FieldMillimeters per inch as double.  
    Public FieldMillimeters per inch as float.  
    Public FieldPicas per inch as double.  
    Public FieldPicas per inch as float.  
    Public FieldPoints per inch as double.  
    Public FieldPoints per inch as float.  
    Public Fieldstatic (Shared in Visual Basic)  
    Public FieldTwips per inch as double.  
    Public FieldTwips per inch as float.  
    Public Fieldstatic (Shared in Visual Basic)  
    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 Unit.Utits 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