Spread ASP.NET 6.0 Product Documentation
Controls Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class : Controls Property


Glossary Item Box

Gets the controls.

Syntax

Visual Basic (Declaration) 
Public Overrides ReadOnly Property Controls As ControlCollection
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim value As ControlCollection
 
value = instance.Controls
C# 
public override ControlCollection Controls {get;}

Property Value

ControlCollection containing the controls

Example

This example returns the identifier of the control.This example returns the identifier of the control.
C#Copy Code
Button btn = new Button(); 
btn.ID = "MyButton"; 
FpSpread1.Controls.Add(btn); 

string msg = FpSpread1.Controls.Item(0).ID.ToString(); 
Response.Write("alert('" + msg + "')"); 
Visual BasicCopy Code
Dim btn As New Button
btn.ID = "MyButton"
FpSpread1.Controls.Add(btn)

Dim msg As String = FpSpread1.Controls.Item(0).ID.ToString()
Response.Write("alert('" & msg & "')")
C#Copy Code
Button btn = new Button(); 
btn.ID = "MyButton"; 
FpSpread1.Controls.Add(btn); 

string msg = FpSpread1.Controls.Item(0).ID.ToString(); 
Response.Write("alert('" + msg + "')"); 
Visual BasicCopy Code
Dim btn As New Button
btn.ID = "MyButton"
FpSpread1.Controls.Add(btn)

Dim msg As String = FpSpread1.Controls.Item(0).ID.ToString()
Response.Write("alert('" & msg & "')")

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.