Spread Windows Forms 7.0 Product Documentation
Tag Field
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > SheetAxisProperty Class : Tag Field


Glossary Item Box

Represents the axis model Tag property.

Syntax

Visual Basic (Declaration) 
Public Shared ReadOnly Tag As SheetAxisProperty
Visual Basic (Usage)Copy Code
Dim value As SheetAxisProperty
 
value = SheetAxisProperty.Tag
C# 
public static readonly SheetAxisProperty Tag

Example

This example checks to see if the Tag property has been set for the specified index of the model.
C#Copy Code
FarPoint.Win.Spread.Model.DefaultSheetAxisModel defAxis = new FarPoint.Win.Spread.Model.DefaultSheetAxisModel(20, FarPoint.Win.Spread.Model.SheetAxisOrientation.Vertical);
fpSpread1.ActiveSheet.Models.ColumnAxis = defAxis;
bool b;
defAxis.SetTag(0, "TestTag");
b = defAxis.IsPropertySet(0, FarPoint.Win.Spread.Model.SheetAxisProperty.Tag);
listBox1.Items.Add(b.ToString());
Visual BasicCopy Code
Dim defAxis As New FarPoint.Win.Spread.Model.DefaultSheetAxisModel(20, FarPoint.Win.Spread.Model.SheetAxisOrientation.Vertical)
defAxis = FpSpread1.ActiveSheet.Models.ColumnAxis
Dim b As Boolean
defAxis.SetTag(0, "TestTag")
b = defAxis.IsPropertySet(0, FarPoint.Win.Spread.Model.SheetAxisProperty.Tag)
ListBox1.Items.Add(b.ToString())

Requirements

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

See Also

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