GridItem.Label Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

When overridden in a derived class, gets the text of this GridItem.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public abstract string Label { get; }

Property Value

Type: System.String

A String representing the text associated with this GridItem.

This class gets the text that displays in the left column of the grid. The text retrieved can be different from the actual property name of the property represented by this GridItem. You can get the name for a GridItem of type GridItemType.Property by retrieving the PropertyDescriptor and checking its Name property.

.NET Framework
Available since 1.1
Return to top