Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / ListBoxLengthUnitType Enumeration


In This Topic
    ListBoxLengthUnitType Enumeration
    In This Topic
    Defines constants that describe how GrapeCity.Windows.InputMan.GcListBox elements, such as columns, are sized.
    Syntax
    'Declaration
     
    Public Enum ListBoxLengthUnitType 
       Inherits System.Enum
    'Usage
     
    Dim instance As ListBoxLengthUnitType
    public enum ListBoxLengthUnitType : System.Enum 
    Members
    MemberDescription
    AutoThe unit of measure is based on the size of the SubItems and the column header.
    PixelThe unit of measure is expressed in pixels.
    SizeToHeaderThe unit of measure is based on the size of the column header.
    SizeToSubItemsThe unit of measure is based on the size of the SubItems.
    StarThe unit of measure is a weighted proportion of the available space.
    Remarks
    This enumeration is used with the UnitType property of a ListBoxLength type to indicate how elements are sized relative to other elements in a GrapeCity.Windows.InputMan.GcListBox. The ListBoxLength type is used for sizing properties, such as GrapeCity.Windows.InputMan.GcListBox.ColumnWidth. In Silverlight 4 and later, the star sizing mode can be used to distribute available space by weighted proportions. In Extensible Application Markup Language (XAML), star values are expressed as n* where n represents a numeric value. 1* is equivalent to *. For example if two columns in a GrapeCity.Windows.InputMan.GcListBox had widths of * and 2*, the first column would receive one portion of the available space and the second column would receive two portions of the available space.
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             GrapeCity.Wpf.SpreadSheet.CellType.Editors.ListBoxLengthUnitType

    See Also