Spread for ASP.NET 7.0 Product Documentation
TouchStripShowingArea Enumeration
Example  See Also  Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace : TouchStripShowingArea Enumeration


Glossary Item Box

Specifies what area requires the TouchStrip popup.

Syntax

Visual Basic (Declaration) 
Public Enum TouchStripShowingArea 
   Inherits System.Enum
Visual Basic (Usage)Copy Code
Dim instance As TouchStripShowingArea
C# 
public enum TouchStripShowingArea : System.Enum 

Members

MemberDescription
CellSpecifies the cell area.
ChartSpecifies the chart area.
ColumnSpecifies the column area.
RowSpecifies the row area.

Example

This example uses the TouchStripShowingArea enumeration.
C#Copy Code
protected void Page_Load(object sender, EventArgs e)
       {
           if (this.IsPostBack) return;
           FarPoint.Web.Spread.TouchStrip ts = new FarPoint.Web.Spread.TouchStrip();
           FarPoint.Web.Spread.TouchStripItem item1 = new FarPoint.Web.Spread.TouchStripItem("Red");
           FarPoint.Web.Spread.TouchStripItem item2 = new FarPoint.Web.Spread.TouchStripItem("Green");
           FarPoint.Web.Spread.TouchStripItem item3 = new FarPoint.Web.Spread.TouchStripItem("Blue");      
           ts.Items.Add(item1);
           ts.Items.Add(item2);
           ts.Items.Add(item3);
           item1.AutoPostBack = true;
           item2.AutoPostBack = true;            
           FpSpread1.TouchStrips[FarPoint.Web.Spread.TouchStripShowingArea.Row] = ts;           
       }

       protected void FpSpread1_TouchStripItemClicked(object sender, FarPoint.Web.Spread.TouchStripItemClickEventArgs eventArgs)
       {
           FpSpread1.ActiveSheetView.Cells[0, 0].Value += eventArgs.Area.ToString();
           FpSpread1.SaveChanges();            
       }
VB.NETCopy Code
Protected Sub Page_Load(sender As Object, e As EventArgs)
    If Me.IsPostBack Then
        Return
    End If
    Dim ts As New FarPoint.Web.Spread.TouchStrip()
    Dim item1 As New FarPoint.Web.Spread.TouchStripItem("Red")
    Dim item2 As New FarPoint.Web.Spread.TouchStripItem("Green")
    Dim item3 As New FarPoint.Web.Spread.TouchStripItem("Blue")
    ts.Items.Add(item1)
    ts.Items.Add(item2)
    ts.Items.Add(item3)
    item1.AutoPostBack = True
    item2.AutoPostBack = True
    FpSpread1.TouchStrips(FarPoint.Web.Spread.TouchStripShowingArea.Row) = ts
End Sub

Protected Sub FpSpread1_TouchStripItemClicked(sender As Object, eventArgs As FarPoint.Web.Spread.TouchStripItemClickEventArgs)
    FpSpread1.ActiveSheetView.Cells(0, 0).Value += eventArgs.Area.ToString()
    FpSpread1.SaveChanges()
End Sub

Inheritance Hierarchy

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

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.