GrapeCity.Xaml.SpreadSheet.Data
Tag Property (Column)
Example 


Gets or sets the application-defined tag value associated with the cells in this column.
Syntax
'Declaration
 
<DefaultValueAttribute()>
Public Property Tag As Object
'Usage
 
Dim instance As Column
Dim value As Object
 
instance.Tag = value
 
value = instance.Tag
[DefaultValue()]
public object Tag {get; set;}

Property Value

An application-defined tag value for a cell. The default value is null.
Example
This example sets the Tag property.
gcSpreadSheet1.ActiveSheet.Columns[1].Tag = "test";
gcSpreadSheet1.ActiveSheet.Columns[1].TabStop = false;
gcSpreadSheet1.ActiveSheet.Columns[1].ShrinkToFit = true;
gcSpreadSheet1.ActiveSheet.Cells[0, 1].Text = "Column with tags";
//gcSpreadSheet1.ActiveSheet.Columns[1].ResetTabStop();
//gcSpreadSheet1.ActiveSheet.Columns[1].ResetShrinkToFit();
GcSpreadSheet1.ActiveSheet.Columns(1).Tag = "test"
GcSpreadSheet1.ActiveSheet.Columns(1).TabStop = False
GcSpreadSheet1.ActiveSheet.Columns(1).ShrinkToFit = True
GcSpreadSheet1.ActiveSheet.Cells(0, 1).Text = "Column with tags"
'GcSpreadSheet1.ActiveSheet.Columns(1).ResetTabStop()
'GcSpreadSheet1.ActiveSheet.Columns(1).ResetShrinkToFit()
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

Column Class
Column Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options