Spread Windows Forms 11.0 Product Documentation
SetTag Method (SheetView)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : SetTag Method
Row index (Set to -1 for all rows)
Column index (Set to -1 for all columns)
Tag value for the specified cell, column, row, or sheet
Sets the application-defined tag value for the specified cell, column, row, or entire sheet.
Syntax
'Declaration
 
Public Sub SetTag( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal value As Object _
) 
'Usage
 
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim value As Object
 
instance.SetTag(row, column, value)
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
Remarks
For a row tag, set the column index to -1; for a column tag, set the row index to -1; for a sheet, set both row and column indexes to -1.
Example
This example illustrates the use of this member by returning the application-defined tag value for the specified cell.
fpSpread1.ActiveSheet.SetTag(0, 0, "AppTag");
label1.Text = "The tag for the sheet is  " + fpSpread1.ActiveSheet.GetTag(0, 0).ToString();
FpSpread1.ActiveSheet.SetTag(0, 0, "AppTag")
Label1.Text = "The tag for the sheet is  " & FpSpread1.ActiveSheet.GetTag(0, 0).ToString()
See Also

Reference

SheetView Class
SheetView Members
GetTag Method

User-Task Documentation

Adding a Tag to a Cell