[]
        
(Showing Draft Content)

FarPoint.Win.Spread.FpSpread.AddControl

AddControl Method

AddControl(Control, int, int, int)

Adds a child control to a specified sheet at the location of the specified row and column.

Declaration
public virtual bool AddControl(Control child, int sheetIndex, int rowIndex, int columnIndex)
Public Overridable Function AddControl(child As Control, sheetIndex As Integer, rowIndex As Integer, columnIndex As Integer) As Boolean
Parameters
Type Name Description
Control child

Child control being added

int sheetIndex

Index of the sheet

int rowIndex

Index of the row to align

int columnIndex

Index of the column to align

Returns
Type Description
bool

true if the control was successfully added; false otherwise

AddControl(Control, int)

Adds a child control to the specified sheet using the control's Top and Left properties for location.

Declaration
public virtual bool AddControl(Control child, int sheetIndex)
Public Overridable Function AddControl(child As Control, sheetIndex As Integer) As Boolean
Parameters
Type Name Description
Control child

Child control being added

int sheetIndex

Index of the sheet

Returns
Type Description
bool

True if the control was successfully added; otherwise, false