Spread for ASP.NET 10 Product Documentation
TouchStripItem Constructor(String)
Example 


The text.
Initializes a new instance of the MenuItem class.
Syntax
'Declaration
 
Public Function New( _
   ByVal text As String _
)
'Usage
 
Dim text As String
 
Dim instance As New TouchStripItem(text)
public TouchStripItem( 
   string text
)

Parameters

text
The text.
Example
This example adds custom items to the touch strip.
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;
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 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

TouchStripItem Class
TouchStripItem Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.