GrapeCity.Xaml.SpreadSheet.Data
GetTag(Int32,Int32,SheetArea) Method
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class > GetTag Method : GetTag(Int32,Int32,SheetArea) Method
The row index.
The column index.
The sheet area.
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 Integer, _
   ByVal column As Integer, _
   ByVal sheetArea As SheetArea _
) As Object
'Usage
 
Dim instance As Worksheet
Dim row As Integer
Dim column As Integer
Dim sheetArea As SheetArea
Dim value As Object
 
value = instance.GetTag(row, column, sheetArea)
public object GetTag( 
   int row,
   int column,
   SheetArea sheetArea
)

Parameters

row
The row index.
column
The column index.
sheetArea
The sheet area.

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.Xaml.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.Xaml.SpreadSheet.Data.SheetArea.Cells).ToString())
See Also

Reference

Worksheet Class
Worksheet Members
Overload List