Spread Windows Forms 9.0 Product Documentation
TouchStripShowingArea Enumeration
Example Example 


Specifies what area to display the SpreadTouchStrip.
Syntax
'Declaration
 
Public Enum TouchStripShowingArea 
   Inherits System.Enum
'Usage
 
Dim instance As TouchStripShowingArea
public enum TouchStripShowingArea : System.Enum 
Members
MemberDescription
CellSpecifies the cell area.
ChartSpecifies the chart area.
ChildControlSpecifies the child control area.
ColumnSpecifies the column area.
NoteSpecifies the sticky note area.
RowSpecifies the row area.
ShapeSpecifies the shape area.
Example
This example uses the TouchStripShowingArea enumeration.
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));
           }
       }
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
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.TouchStripShowingArea

Requirements

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

See Also

Reference

FarPoint.Win.Spread Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.