ComponentOne Sizer for WinForms
C1.Win.Sizer.6 Assembly / C1.Win.Sizer Namespace / C1Sizer Class / AddControl Method / AddControl(Control,Int32,Int32,Int32,Int32) Method
Child System.Windows.Forms.Control to add.
Index of the row where the child control will be positioned.
Index of the column where the child control will be positioned.
Number of rows the child control should span.
Number of columns the child control should span.

In This Topic
    AddControl(Control,Int32,Int32,Int32,Int32) Method
    In This Topic
    Adds a child control to the C1Sizer and positions it at a given cell on the grid.
    Syntax
    'Declaration
     
    Public Overloads Sub AddControl( _
       ByVal ctl As System.Windows.Forms.Control, _
       ByVal row As System.Integer, _
       ByVal col As System.Integer, _
       ByVal rowSpan As System.Integer, _
       ByVal colSpan As System.Integer _
    ) 
    public void AddControl( 
       System.Windows.Forms.Control ctl,
       System.int row,
       System.int col,
       System.int rowSpan,
       System.int colSpan
    )

    Parameters

    ctl
    Child System.Windows.Forms.Control to add.
    row
    Index of the row where the child control will be positioned.
    col
    Index of the column where the child control will be positioned.
    rowSpan
    Number of rows the child control should span.
    colSpan
    Number of columns the child control should span.
    See Also