Spread Windows Forms 6.0 Product Documentation
GetColumnFromTag Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : GetColumnFromTag Method


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

Glossary Item Box

Gets a column on this sheet with a specific tag.

Syntax

Visual Basic (Declaration) 
Public Function GetColumnFromTag( _
   ByVal columnToStart As Column, _
   ByVal tagToFind As Object _
) As Column
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim columnToStart As Column
Dim tagToFind As Object
Dim value As Column
 
value = instance.GetColumnFromTag(columnToStart, tagToFind)
C# 
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.
C#Copy Code
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;
Visual BasicCopy Code
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.