PrintDocument for WinForms | ComponentOne
C1.PrintDocument.6 Assembly / C1.C1Preview Namespace / Unit Structure
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 Properties
     NameDescription
    Public Propertystatic (Shared in Visual Basic)Gets a Unit representing an "auto" value.  
    Public Propertystatic (Shared in Visual Basic)Gets a Unit value representing the default "bold" line thickness (2 points wide).  
    Public Propertystatic (Shared in Visual Basic)Gets a Unit representing an emtpy (zero) value.  
    Public PropertyGets a value indicating whether the current unit represents an absolute value (such as "1mm", "2in", "3em" and so on).  
    Public PropertyGets a value indicating whether the current unit represents an "auto" value.  
    Public PropertyGets a value indicating whether the current unit represents an empty value.  
    Public PropertyGets a value indicating whether the current unit is specified as "parent".  
    Public PropertyGets a value indicating whether the current unit is specified as "parent.height".  
    Public PropertyGets a value indicating whether the current unit is specified as "parent.width".  
    Public Propertystatic (Shared in Visual Basic)Gets a Unit value representing the default line thickness (1 point wide).  
    Public PropertyGets the unit of measurement of the current unit.  
    Public PropertyGets the absolute value of the current unit (in Unit.Units).  
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded. Attempts to convert the current unit value to other unit of measurement.

    Only absolute units can be converted. This method throws an exception if the conversion cannot be performed.

     
    Public MethodCompares the current unit value with another object.  
    Public Methodstatic (Shared in Visual Basic)Attempts to convert an object to a unit value. This method throws an exception if the conversion cannot be performed.  
    Public MethodGets the hash code for the current unit value.  
    Public MethodReturns a string that represents the current object.  
    Top
    Public Operators
    Tests whether the two unit values are equal.
    Overloaded. Returns the absolute value of a Unit expressed in UnitTypeEnum.Default units.

    Throws exception if the operation cannot be performed.

    Tests whether the two unit values are not equal.
    Top
    See Also