Spread WPF Documentation
GrapeCity.Windows.SpreadSheet.Data Namespace / Cell Class / Tag Property

In This Topic
    Tag Property (Cell)
    In This Topic
    Gets or sets an application-defined tag value for a cell.
    Public Property Tag As Object
    Dim instance As Cell
    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.Cells[1, 1].Tag = "test";
    gcSpreadSheet1.ActiveSheet.Cells[1, 1].TabStop = false;
    gcSpreadSheet1.ActiveSheet.Cells[1, 1].Text = "Cell with tag";
    gcSpreadSheet1.ActiveSheet.Cells[1, 1].ShrinkToFit = true;
    //gcSpreadSheet1.ActiveSheet.Cells[1, 1].ResetTabStop();
    //gcSpreadSheet1.ActiveSheet.Cells[1, 1].ResetShrinkToFit();
    GcSpreadSheet1.ActiveSheet.Cells(1, 1).Tag = "test"
    GcSpreadSheet1.ActiveSheet.Cells(1, 1).TabStop = False
    GcSpreadSheet1.ActiveSheet.Cells(1, 1).Text = "Cell with tag"
    GcSpreadSheet1.ActiveSheet.Cells(1, 1).ShrinkToFit = True
    'GcSpreadSheet1.ActiveSheet.Cells(1, 1).ResetTabStop()
    'GcSpreadSheet1.ActiveSheet.Cells(1, 1).ResetShrinkToFit()
    See Also