Spread Windows Forms 6.0 Product Documentation
AddControl(Control,Int32) Method
See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class > AddControl Method : AddControl(Control,Int32) Method


child
Child control being added
sheetIndex
Index of the sheet

Glossary Item Box

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

Syntax

Visual Basic (Declaration) 
Public Overloads Overridable Function AddControl( _
   ByVal child As Control, _
   ByVal sheetIndex As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim child As Control
Dim sheetIndex As Integer
Dim value As Boolean
 
value = instance.AddControl(child, sheetIndex)
C# 
public virtual bool AddControl( 
   Control child,
   int sheetIndex
)

Parameters

child
Child control being added
sheetIndex
Index of the sheet

Return Value

Boolean: true if successful; false otherwise

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.