Spread for ASP.NET 7.0 Product Documentation
GetColumnFromTag Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.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 corresponding to the tag

Example

This example uses the GetColumnFromTag method.
C#Copy Code
FarPoint.Web.Spread.SheetView sv;            
sv = FpSpread1.ActiveSheetView;
sv.Columns[2].Tag = "MyTag";
ListBox1.Items.Add(sv.GetColumnFromTag(null, "MyTag").ToString());
VB.NETCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
sv.Columns(2).Tag = "MyTag"
ListBox1.Items.Add(sv.GetColumnFromTag(Nothing, "MyTag").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.