ComponentOne Sizer for WinForms
C1.Win.C1Sizer.4.8 Assembly / C1.Win.C1Sizer Namespace / Column Class / Size Property

In This Topic
    Size Property (Column)
    In This Topic
    Gets or sets the width of the Column in pixels.
    Syntax
    'Declaration
     
    Public Overrides Property Size As System.Integer
    public override System.int Size {get; set;}
    Remarks

    The Size property is updated whenever the control is resized, so that the columns take up the entire width of the control.

    You can prevent specific columns from being resized with the form by setting their Band.IsFixedSize property. You can also set the size of multiple columns with a single call using the BandCollection.SetSizes method in the ColumnCollection class.

    When entering row heights or column widths into the PropertyGrid, you may also specify values as percentages of the control size (e.g. "25%").

    See Also