Spread WPF 17
GrapeCity.Windows.SpreadSheet.Data Namespace / Column Class / Width Property


In This Topic
    Width Property (Column)
    In This Topic
    Gets or sets the width of cells in this column, in pixels.
    Syntax
    'Declaration
     
    <DefaultValueAttribute(60)>
    Public Property Width As Double
    'Usage
     
    Dim instance As Column
    Dim value As Double
     
    instance.Width = value
     
    value = instance.Width
    [DefaultValue(60)]
    public double Width {get; set;}

    Property Value

    The width of cells in this column in pixels. The default value is 60 pixels.
    Exceptions
    ExceptionDescription
    Specified width is out of range; must be between -1 and 9,999,999 pixels.
    Remarks
    The GrapeCity.Windows.SpreadSheet.Data.Column.get_Width returns the integral part of width. You can get the exact width with ExactWidth.
    See Also