ComponentOne Sizer for WinForms
C1.Win.Sizer.6 Assembly / C1.Win.Sizer Namespace / C1Sizer Class
Members

In This Topic
    C1Sizer Class
    In This Topic
    A container control with a powerful grid layout manager that extends the basic layout capabilities provided by the .NET framework (Dock and Anchor properties).
    Object Model
    C1Sizer Class
    Syntax
    'Declaration
     
    Public Class C1Sizer 
       Inherits System.Windows.Forms.Control
    public class C1Sizer : System.Windows.Forms.Control 
    Remarks

    The C1Sizer control allows you to define a grid made up of bands, then add controls that snap to these bands. When the C1Sizer control is resized, the bands are automatically recalculated, and contained controls move automatically to their new positions.

    You can set up bands at design time and configure them to act as splitters or to keep their size constant when the control is resized.

    You will rarely have to write any code in order to use the C1Sizer component. In most applications, you will follow these steps:

    1) Add one or more C1Sizer controls to the form, and set their Dock property to fill the form,

    2) Use the Grid Editor to set up a grid layout at design time, and add controls which will snap to the grid.

    You can use the Grid Editor to set the number and dimension of the grid's bands (rows and columns), and also to specify which bands should act as splitters, and which should have fixed dimensions.

    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.ComponentModel.Component
             System.Windows.Forms.Control
                C1.Win.Sizer.C1Sizer

    See Also