CustomLabel Class
TOC
Collapse the table of content
Expand the table of content

CustomLabel Class

.NET Framework (current version)
 

Represents a custom label for an axis.

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


public class CustomLabel : ChartNamedElement, IChartMapArea

NameDescription
System_CAPS_pubmethodCustomLabel()

Creates a new instance of the CustomLabel class.

System_CAPS_pubmethodCustomLabel(Double, Double, String, Int32, LabelMarkStyle)

Initializes a new instance of the CustomLabel class with the specified fromPosition, toPosition, text, labelRow, and markStyle parameters.

System_CAPS_pubmethodCustomLabel(Double, Double, String, Int32, LabelMarkStyle, GridTickTypes)

Initializes a new instance of the CustomLabel class with the specified fromPosition, toPosition, text, labelRow, markStyle and gridTick parameters.

NameDescription
System_CAPS_pubpropertyAxis

Gets the axis that this CustomLabel object belongs to.

System_CAPS_pubpropertyForeColor

Gets or sets the text color of the custom label.

System_CAPS_pubpropertyFromPosition

Gets or sets the beginning position, in axis coordinates, of the custom label.

System_CAPS_pubpropertyGridTicks

Gets or sets a property that specifies whether custom tick marks and grid lines will be drawn in the center of the label.

System_CAPS_pubpropertyImage

Gets or sets the custom label image.

System_CAPS_pubpropertyImageMapAreaAttributes

Gets or sets a string that represents the area attributes of a custom label image.

System_CAPS_pubpropertyImagePostBackValue

Gets or sets the postback value that can be processed on a Click event.

System_CAPS_pubpropertyImageTransparentColor

Gets or sets a color that will be replaced with a transparent color when a custom label image is drawn.

System_CAPS_pubpropertyImageUrl

Gets or sets the URL target of the label image.

System_CAPS_pubpropertyLabelMark

Gets or sets the label mark for a custom label. This applies to labels in the second row only.

System_CAPS_pubpropertyMapAreaAttributes

Gets or sets the map area attributes, if any, of the custom label.

System_CAPS_pubpropertyMarkColor

Gets or sets the marker color for the custom label.

System_CAPS_pubpropertyName

Gets or sets the name of the custom label.(Overrides ChartNamedElement.Name.)

System_CAPS_pubpropertyPostBackValue

Gets or sets the postback value that can be processed on a Click event.

System_CAPS_pubpropertyRowIndex

Gets or sets the index of the custom label row.

System_CAPS_pubpropertyTag

Gets or sets an object associated with this chart element.(Inherited from ChartElement.)

System_CAPS_pubpropertyText

Gets or sets the custom label text.

System_CAPS_pubpropertyToolTip

Gets or sets the custom label tooltip text.

System_CAPS_pubpropertyToPosition

Gets or sets the end position of the custom label, in axis coordinates.

System_CAPS_pubpropertyUrl

Gets or sets the target URL of the custom label.

NameDescription
System_CAPS_pubmethodClone()

Returns a cloned label object.

System_CAPS_pubmethodDispose()

Releases the resources used by the ChartElement.(Inherited from ChartElement.)

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the ChartElement and optionally releases the managed resources.(Inherited from ChartElement.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified Object is equal to the current ChartElement.(Inherited from ChartElement.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Returns a hash function for a particular type.(Inherited from ChartElement.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current Object.(Inherited from ChartElement.)

CustomLabel objects are stored in the CustomLabelsCollection class, which is exposed as the CustomLabels property of the Axis class.

Axis labels for the first label row are automatically generated unless custom labels are specified using the CustomLabels property. If you specify a custom label along the first label row, no axis labels will be automatically generated for the entire first row.

Only custom labels may be used for the second label row.

The ToPosition and FromPosition properties determine the axis range that the label applies to.

A grid line and/or tick mark can be displayed for a custom axis label by using the GridTicks property; this property specifies whether a custom grid line or tick mark will be drawn in the middle of the label range.

.NET Framework
Available since 4.0

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

Return to top
Show:
© 2016 Microsoft