Visual Basic (Declaration) | |
---|---|
Public Function New() |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As New NameBox() |
C# | |
---|---|
public NameBox() |
This example creates a name box and attaches it to the Spread control.
C# | Copy Code |
---|---|
fpSpread1.ActiveSheet.AddCustomName("Alpha", "A1:B1", 0, 0); FarPoint.Win.Spread.NameBox namebox1 = new FarPoint.Win.Spread.NameBox(); namebox1.Location = new Point(0, 0); namebox1.Size = new Size(80, 20); this.Controls.Add(namebox1); namebox1.Attach(fpSpread1); |
VB.NET | Copy Code |
---|---|
FpSpread1.ActiveSheet.AddCustomName("Alpha", "A1:B1", 0, 0) Dim namebox1 As New FarPoint.Win.Spread.NameBox() namebox1.Location = New Point(0, 0) namebox1.Size = New Size(80, 20) Controls.Add(namebox1) namebox1.Attach(FpSpread1) |
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8