Annotation.Alignment Property

Definition

Gets or sets the content alignment of an annotation.

C#
public virtual System.Drawing.ContentAlignment Alignment { get; set; }

Property Value

A ContentAlignment enumeration value that represents the content alignment.

Remarks

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

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1