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


spread
The spread.

Glossary Item Box

Creates a RowTouchStrip instance.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal spread As FpSpread _
)
Visual Basic (Usage)Copy Code
Dim spread As FpSpread
 
Dim instance As New RowTouchStrip(spread)
C# 
public RowTouchStrip( 
   FpSpread spread
)

Parameters

spread
The spread.

Example

This example creates a touch strip.
C#Copy Code
private void fpSpread1_TouchStripOpening(object sender, FarPoint.Win.Spread.TouchStripOpeningEventArgs e)
       {
           if (e.Area == FarPoint.Win.Spread.TouchStripShowingArea.Row) {
           e.Cancel = true;
           FarPoint.Win.Spread.RowTouchStrip touchStrip = new FarPoint.Win.Spread.RowTouchStrip(this.fpSpread1);            
           touchStrip.Items["Cut"].Visible = false;
           touchStrip.Show(new Point(e.X - 20, e.Y - 35 - touchStrip.Height));
           }
       }
VB.NETCopy Code
Private Sub fpSpread1_TouchStripOpening(sender As Object, e As FarPoint.Win.Spread.TouchStripOpeningEventArgs)
If (e.Area = FarPoint.Win.Spread.TouchStripShowingArea.Row) Then
e.Cancel = True
Dim touchStrip As New FarPoint.Win.Spread.RowTouchStrip(Me.fpSpread1)
touchStrip.Items("Cut").Visible = False
touchStrip.Show(New Point(e.X - 20, e.Y - 35 - touchStrip.Height))
End If
End Sub

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.