Spread Windows Forms 7.0 Product Documentation
NameBox Constructor
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > NameBox Class : NameBox Constructor


Glossary Item Box

construct

Syntax

Visual Basic (Declaration) 
Public Function New()
Visual Basic (Usage)Copy Code
Dim instance As New NameBox()
C# 
public NameBox()

Example

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.NETCopy 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)

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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