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


cellToStart
Cell object in Cells collection from which to start (pass null to start from beginning)
tagToFind
Tag object to identify the Cell you are looking for

Glossary Item Box

Gets a cell with a specific tag on the sheet.

Syntax

Visual Basic (Declaration) 
Public Function GetCellFromTag( _
   ByVal cellToStart As Cell, _
   ByVal tagToFind As Object _
) As Cell
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim cellToStart As Cell
Dim tagToFind As Object
Dim value As Cell
 
value = instance.GetCellFromTag(cellToStart, tagToFind)
C# 
public Cell GetCellFromTag( 
   Cell cellToStart,
   object tagToFind
)

Parameters

cellToStart
Cell object in Cells collection from which to start (pass null to start from beginning)
tagToFind
Tag object to identify the Cell you are looking for

Return Value

Cell object corresponding to the tag

Example

This example uses the GetCellFromTag 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.