Spread Silverlight Documentation
GrapeCity.Windows.SpreadSheet.Data Namespace / Column Class / Tag Property

In This Topic
    Tag Property (Column)
    In This Topic
    Gets or sets the application-defined tag value associated with the cells in this column.
    Public Property Tag As Object
    Dim instance As Column
    Dim value As Object
    instance.Tag = value
    value = instance.Tag
    public object Tag {get; set;}

    Property Value

    An application-defined tag value for a cell. The default value is null.
    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).Tag = "test"
    GcSpreadSheet1.ActiveSheet.Columns(1).TabStop = False
    GcSpreadSheet1.ActiveSheet.Columns(1).ShrinkToFit = True
    GcSpreadSheet1.ActiveSheet.Cells(0, 1).Text = "Column with tags"
    See Also