Spread Silverlight Documentation
GetTag(Int32,Int32) Method
Example 


The row index.
The column index.
Gets the application-defined tag value for the specified cell, column, row, or entire sheet in the specified sheet area.
Syntax
'Declaration
 
Public Overloads Function GetTag( _
   ByVal row As System.Integer, _
   ByVal column As System.Integer _
) As System.Object
'Usage
 
Dim instance As Worksheet
Dim row As System.Integer
Dim column As System.Integer
Dim value As System.Object
 
value = instance.GetTag(row, column)
public System.object GetTag( 
   System.int row,
   System.int column
)

Parameters

row
The row index.
column
The column index.

Return Value

Returns the tag for the specified cell.
Example
This example uses the GetTag method.
gcSpreadSheet1.Sheets[0].Cells[0, 0].Tag = "Test";
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetTag(0, 0).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetTag(0, 0, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells).ToString());
GcSpreadSheet1.Sheets(0).Cells(0, 0).Tag = "Test"
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetTag(0, 0).ToString())
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetTag(0, 0, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells).ToString())
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.