Spread for ASP.NET 11 Product Documentation
GetColumnFromTag Method
Example 


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

Parameters

columnToStart
Column object in Columns collection from which to start (pass null to start from beginning)
tagToFind
Tag object to identify the Column you are looking for

Return Value

Column object corresponding to the tag
Example
This example uses the GetColumnFromTag method.
FarPoint.Web.Spread.SheetView sv;            
sv = FpSpread1.ActiveSheetView;
sv.Columns[2].Tag = "MyTag";
ListBox1.Items.Add(sv.GetColumnFromTag(null, "MyTag").ToString());
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
sv.Columns(2).Tag = "MyTag"
ListBox1.Items.Add(sv.GetColumnFromTag(Nothing, "MyTag").ToString())
See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Adding a Tag to a Cell