Spread Windows Forms 15.0
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / FpSpread Class / AddControl Method / AddControl(Control,Int32,Int32,Int32) Method
Child control being added
Index of the sheet
Index of the row to align
Index of the column to align


In This Topic
    AddControl(Control,Int32,Int32,Int32) Method
    In This Topic
    Adds a child control to a specified sheet at the location of the specified row and column.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function AddControl( _
       ByVal child As Control, _
       ByVal sheetIndex As Integer, _
       ByVal rowIndex As Integer, _
       ByVal columnIndex As Integer _
    ) As Boolean
    'Usage
     
    
    Dim instance As FpSpread
    Dim child As Control
    Dim sheetIndex As Integer
    Dim rowIndex As Integer
    Dim columnIndex As Integer
    Dim value As Boolean
     
    value = instance.AddControl(child, sheetIndex, rowIndex, columnIndex)
    public virtual bool AddControl( 
       Control child,
       int sheetIndex,
       int rowIndex,
       int columnIndex
    )

    Parameters

    child
    Child control being added
    sheetIndex
    Index of the sheet
    rowIndex
    Index of the row to align
    columnIndex
    Index of the column to align

    Return Value

    true if the control was successfully added; false otherwise
    See Also