Blazor | ComponentOne
C1.Blazor.Core Assembly / C1.Blazor.Core Namespace / C1StyleLengthUnit Enumeration

In This Topic
    C1StyleLengthUnit Enumeration
    In This Topic
    Units that can be used to express a C1StyleLength.
    Syntax
    'Declaration
     
    
    Public Enum C1StyleLengthUnit 
       Inherits System.Enum
    public enum C1StyleLengthUnit : System.Enum 
    Members
    MemberDescription
    CHRelative to width of the "0" (zero)
    CMCentimeters
    EMRelative to the font-size of the element (2em means 2 times the size of the current font)
    EXRelative to the x-height of the current font (rarely used)
    INInches (1in = 96px = 2.54cm)
    MMMillimeters
    PCPicas (1pc = 12 pt)
    PERCENTAGERelative to the parent element
    PTPoints (1pt = 1 / 72 of 1in)
    PXPixels (1px = 1 / 96th of 1in)
    REMRelative to font-size of the root element
    VHRelative to 1% of the height of the viewport*
    VMAXRelative to 1% of viewport's* larger dimension
    VMINRelative to 1% of viewport's* smaller dimension
    VWRelative to 1% of the width of the viewport*
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             C1.Blazor.Core.C1StyleLengthUnit

    See Also