Annotation.Alignment Property

.NET Framework (current version)

Gets or sets the content alignment of an annotation.

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

public virtual ContentAlignment Alignment { get; set; }

Property Value

Type: System.Drawing.ContentAlignment

A ContentAlignment enumeration value that represents the content alignment.

This property is used to align text for TextAnnotation, RectangleAnnotation, EllipseAnnotation and CalloutAnnotation objects, and to align a non-scaled image inside an ImageAnnotation object.

.NET Framework
Available since 4.0
Return to top