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


In This Topic
    AddControl(Control,Int32) Method
    In This Topic
    Adds a child control to the specified sheet using the control's Top and Left properties for location.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function AddControl( _
       ByVal child As Control, _
       ByVal sheetIndex As Integer _
    ) As Boolean
    'Usage
     
    
    Dim instance As FpSpread
    Dim child As Control
    Dim sheetIndex As Integer
    Dim value As Boolean
     
    value = instance.AddControl(child, sheetIndex)
    public virtual bool AddControl( 
       Control child,
       int sheetIndex
    )

    Parameters

    child
    Child control being added
    sheetIndex
    Index of the sheet

    Return Value

    True if the control was successfully added; otherwise, false
    See Also