LabelStyle Class
Collapse the table of content
Expand the table of content

LabelStyle Class

Provides properties that define the visual appearance of the axis labels.


Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public class LabelStyle : ChartElement

The LabelStyle type exposes the following members.

Public methodLabelStyleInitializes a new instance of the LabelStyle class.

Public propertyAngleGets or sets a value that represents the angle at which the font is drawn.
Public propertyEnabledGets or sets a flag that indicates whether the label is enabled.
Public propertyFontGets or sets the font of the label.
Public propertyForeColorGets or sets the color of the label.
Public propertyFormatGets or sets the formatting string for the label text.
Public propertyIntervalGets or sets the size of the label interval.
Public propertyIntervalOffsetGets or sets the offset of the label interval.
Public propertyIntervalOffsetTypeGets or sets the unit of measurement of the label interval offset.
Public propertyIntervalTypeGets or sets the unit of measurement for the size of a label interval.
Public propertyIsEndLabelVisibleGets or sets a flag that determines whether the labels are shown at axis ends.
Public propertyIsStaggeredGets or sets a flag that determines whether the labels are shown with an offset.
Public propertyTagGets or sets an object associated with this chart element. (Inherited from ChartElement.)
Public propertyTruncatedLabelsGets or sets a flag that determines whether the labels can be truncated.

Public methodDispose()Releases the resources used by the ChartElement. (Inherited from ChartElement.)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the LabelStyle and optionally releases the managed resources. (Overrides ChartElement.Dispose(Boolean).)
Public methodEqualsDetermines whether the specified Object is equal to the current ChartElement. (Inherited from ChartElement.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns a hash function for a particular type. (Inherited from ChartElement.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current Object. (Inherited from ChartElement.)

Members of this class are also used to calculate the intervals and positions of the axis labels, and to draw them.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

© 2016 Microsoft