Spread Windows Forms 7.0 Product Documentation
GetTag Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : GetTag Method


row
Row index
Set to -1 for all rows
column
Column index
Set to -1 for all columns

Glossary Item Box

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

Syntax

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

Parameters

row
Row index
Set to -1 for all rows
column
Column index
Set to -1 for all columns

Return Value

Object containing the application-defined 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.
C#Copy Code
fpSpread1.ActiveSheet.SetTag(0, 0, "AppTag");
label1.Text = "The tag for the sheet is  " + fpSpread1.ActiveSheet.GetTag(0, 0).ToString();
Visual BasicCopy Code
FpSpread1.ActiveSheet.SetTag(0, 0, "AppTag")
Label1.Text = "The tag for the sheet is  " & FpSpread1.ActiveSheet.GetTag(0, 0).ToString()

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.