Skip to main content

Annotation.LabelMode Property

Specifies whether the annotation should be cut off if it doesn’t fit into the diagram’s dimensions.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

[TypeConverter(typeof(BooleanTypeConverter))]
[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
[XtraSerializableProperty]
public bool LabelMode { get; set; }

Property Value

Type Description
Boolean

true to always draw the annotation entirely; otherwise, false. The default is false.

Remarks

Enable the LabelMode property, to make an annotation behave similarly to a series label, which means that it won’t be cut off if it doesn’t fit in the diagram‘s dimensions. Instead, the diagram is resized to entirely accommodate the annotation.

LabelMode = false LabelMode = true
LabelMode_false LabelMode_true

Note

The label mode has an affect only when RelativePosition is used to specify the Annotation.ShapePosition property and the annotation’s Annotation.AnchorPoint property is set to PaneAnchorPoint or SeriesPointAnchorPoint.

When the LabelMode property is enabled, runtime operations aren’t available for the annotations (the Annotation.RuntimeAnchoring, Annotation.RuntimeMoving, Annotation.RuntimeResizing and Annotation.RuntimeRotation properties are not in effect).

The label mode isn’t allowed for series views supporting the XYDiagram3D type, and for the Funnel series view types (both 2D Funnel and 3D Funnel types).

For more information, refer to Annotations.

See Also