Gets or sets the alignment of the image on the Label.
[Visual Basic] Public Property ImageAlign As ContentAlignment [C#] public ContentAlignment ImageAlign {get; set;} [C++] public: __property ContentAlignment get_ImageAlign(); public: __property void set_ImageAlign(ContentAlignment); [JScript] public function get ImageAlign() : ContentAlignment; public function set ImageAlign(ContentAlignment);
One of the ContentAlignment values. The default is MiddleCenter.
Exception Type | Condition |
---|---|
InvalidEnumArgumentException | The value assigned is not one of the ContentAlignment values. |
Label Class | Label Members | System.WinForms Namespace | ContentAlignment | Image | ImageIndex | ImageList