ComponentOne Sizer for WinForms
C1.Win.Sizer.8 Assembly / C1.Win.Sizer Namespace / BandCollection Class / SetSizes Method
A vector containing the new sizes for each band in the collection.

In This Topic
    SetSizes Method (BandCollection)
    In This Topic
    Sets the size of multiple bands in the collection.
    Syntax
    'Declaration
     
    Public Sub SetSizes( _
       ByVal sizes() As System.Integer _
    ) 
    public void SetSizes( 
       System.int[] sizes
    )

    Parameters

    sizes
    A vector containing the new sizes for each band in the collection.
    Remarks

    You can set the size of a Band object by setting its Band.Size property. However, this will cause other bands to resize immediately, so the collection always fills the client area of the C1Sizer control.

    This method allows you to set the size of multiple bands simultaneously, with a single call.

    Any negative dimensions in the sizes array will be ignored, and the corresponding bands will retain their current dimension.

    See Also