Spread for ASP.NET 7.0 Product Documentation
SetTag Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : SetTag Method


row
Row index (Set to -1 for all rows)
column
Column index (Set to -1 for all columns)
value
Tag value for the specified cell, column, row, or sheet

Glossary Item Box

Sets the application-defined tag value for the specified cell, column, row, or entire sheet.

Syntax

Visual Basic (Declaration) 
Public Sub SetTag( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal value As Object _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim value As Object
 
instance.SetTag(row, column, value)
C# 
public void SetTag( 
   int row,
   int column,
   object value
)

Parameters

row
Row index (Set to -1 for all rows)
column
Column index (Set to -1 for all columns)
value
Tag value for the specified cell, column, row, or sheet

Example

This example sets the SetTag method.
C#Copy Code
FarPoint.Web.Spread.SheetView sv;
sv = FpSpread1.ActiveSheetView;
sv.SetTag(1, 1, "test");
ListBox1.Items.Add(sv.GetCellFromTag(null, "test").ToString());
VB.NETCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
sv.SetTag(1, 1, "test")
ListBox1.Items.Add(sv.GetCellFromTag(Nothing, "test").ToString())

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.