Spread Windows Forms 10.0 Product Documentation
GetColumnFromTag Method
Example 


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 with the specified tag
Example
This example gets a column with a specific tag on the sheet.
FarPoint.Win.Spread.SheetView sv;
FarPoint.Win.Spread.Column col;
sv = fpSpread1.ActiveSheet;
sv.Columns[2].Tag = "MyTag";
acell = sv.GetColumnFromTag(null, "MyTag");
col.BackColor = Color.Yellow;
Dim sv As FarPoint.Win.Spread.SheetView
Dim col As FarPoint.Win.Spread.Column
sv = FpSpread1.ActiveSheet
sv.Columns(2).Tag = "MyTag"
col = sv.GetColumnFromTag(Nothing, "MyTag")
col.BackColor = Color.Yellow
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Adding a Tag to a Cell

 

 


Copyright © GrapeCity, inc. All rights reserved.