Spread for ASP.NET 11 Product Documentation
GetRowFromTag Method
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : GetRowFromTag Method
Row object in Rows collection from which to start (pass null to start from beginning)
Tag object to identify the Row you are looking for
Gets a row on this sheet with a specific tag.
Syntax
'Declaration
 
Public Function GetRowFromTag( _
   ByVal rowToStart As Row, _
   ByVal tagToFind As Object _
) As Row
'Usage
 
Dim instance As SheetView
Dim rowToStart As Row
Dim tagToFind As Object
Dim value As Row
 
value = instance.GetRowFromTag(rowToStart, tagToFind)
public Row GetRowFromTag( 
   Row rowToStart,
   object tagToFind
)

Parameters

rowToStart
Row object in Rows collection from which to start (pass null to start from beginning)
tagToFind
Tag object to identify the Row you are looking for

Return Value

Row object corresponding to the tag
Example
This example uses the GetRowFromTag method.
FarPoint.Web.Spread.SheetView sv;
FarPoint.Web.Spread.Row r;
sv = FpSpread1.ActiveSheetView;
sv.Rows[2].Tag = "MyTag";
r = sv.GetRowFromTag(null, "MyTag");
r.BackColor = System.Drawing.Color.Yellow;
Dim sv As FarPoint.Web.Spread.SheetView
Dim r As FarPoint.Web.Spread.Row
sv = FpSpread1.ActiveSheetView
sv.Rows(2).Tag = "MyTag"
r = sv.GetRowFromTag(Nothing, "MyTag")
r.BackColor = System.Drawing.Color.Yellow
See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Adding a Tag to a Cell