Spread Windows Forms 15.0
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView Class / AddControl Method / AddControl(Control,Int32,Int32,Int32,Int32) Method
Child control to add
Row index at which to add child control
Column index at which to add child control
Number of horizontal pixels to offset from the specified column index
Number of vertical pixels to offset from the specified row index


In This Topic
    AddControl(Control,Int32,Int32,Int32,Int32) Method
    In This Topic
    Adds a child control to the control container for the sheet at the specified row and column, with specified pixel offsets.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Sub AddControl( _
       ByVal control As Control, _
       ByVal row As Integer, _
       ByVal column As Integer, _
       ByVal offsetX As Integer, _
       ByVal offsetY As Integer _
    ) 
    'Usage
     
    
    Dim instance As SheetView
    Dim control As Control
    Dim row As Integer
    Dim column As Integer
    Dim offsetX As Integer
    Dim offsetY As Integer
     
    instance.AddControl(control, row, column, offsetX, offsetY)
    public virtual void AddControl( 
       Control control,
       int row,
       int column,
       int offsetX,
       int offsetY
    )

    Parameters

    control
    Child control to add
    row
    Row index at which to add child control
    column
    Column index at which to add child control
    offsetX
    Number of horizontal pixels to offset from the specified column index
    offsetY
    Number of vertical pixels to offset from the specified row index
    See Also