System.Windows.Forms.Label.ImageAlign Property

Gets or sets the alignment of an image that is displayed in the control.

Syntax

[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DefaultValue(System.Drawing.ContentAlignment.MiddleCenter)]
public System.Drawing.ContentAlignment ImageAlign { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property enables you to align an image within the boundaries of the System.Windows.Forms.Label control to ensure that the image is properly displayed. You can add an image to a System.Windows.Forms.Label using the Label.Image property or the Label.ImageList and Label.ImageIndex properties. Images displayed in the control cannot be stretched or shrunk to fill the control if the control is larger or smaller than the image.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0