Spread for ASP.NET 7.0 Product Documentation
TouchStripItem Constructor(String)
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > TouchStripItem Class > TouchStripItem Constructor : TouchStripItem Constructor(String)


text
The text.

Glossary Item Box

Initializes a new instance of the MenuItem class.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal text As String _
)
Visual Basic (Usage)Copy Code
Dim text As String
 
Dim instance As New TouchStripItem(text)
C# 
public TouchStripItem( 
   string text
)

Parameters

text
The text.

Example

This example adds custom items to the touch strip.
C#Copy Code
FarPoint.Web.Spread.TouchStrip touchStrip = new FarPoint.Web.Spread.TouchStrip();
FarPoint.Web.Spread.TouchStripItem parent = new FarPoint.Web.Spread.TouchStripItem("Other....");
parent.ChildItems.Add(new FarPoint.Web.Spread.MenuItem("Child item"));
touchStrip.Items.Add(parent);
FpSpread1.TouchStrips[FarPoint.Web.Spread.TouchStripShowingArea.Cell] = touchStrip;
VB.NETCopy Code
Dim touchStrip As New FarPoint.Web.Spread.TouchStrip()
Dim parent As New FarPoint.Web.Spread.TouchStripItem("Other....")
parent.ChildItems.Add(New FarPoint.Web.Spread.MenuItem("Child item"))
touchStrip.Items.Add(parent)
FpSpread1.TouchStrips(FarPoint.Web.Spread.TouchStripShowingArea.Cell) = touchStrip

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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