Annotation.Alignment 属性

定义

获取或设置批注的内容对齐方式。Gets or sets the content alignment of an annotation.

public:
 virtual property System::Drawing::ContentAlignment Alignment { System::Drawing::ContentAlignment get(); void set(System::Drawing::ContentAlignment value); };
public virtual System.Drawing.ContentAlignment Alignment { get; set; }
member this.Alignment : System.Drawing.ContentAlignment with get, set
Public Overridable Property Alignment As ContentAlignment

属性值

ContentAlignment

一个 ContentAlignment 枚举值,表示内容的对齐方式。A ContentAlignment enumeration value that represents the content alignment.

注解

此属性用于对齐 TextAnnotation 、和对象的文本 RectangleAnnotation EllipseAnnotation CalloutAnnotation ,以及对齐对象内的非缩放图像 ImageAnnotationThis property is used to align text for TextAnnotation, RectangleAnnotation, EllipseAnnotation and CalloutAnnotation objects, and to align a non-scaled image inside an ImageAnnotation object.

适用于