Muokkaa

Jaa


Legend.Alignment Property

Definition

Gets or sets the alignment of the legend.

public:
 property System::Drawing::StringAlignment Alignment { System::Drawing::StringAlignment get(); void set(System::Drawing::StringAlignment value); };
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public System.Drawing.StringAlignment Alignment { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.Alignment : System.Drawing.StringAlignment with get, set
Public Property Alignment As StringAlignment

Property Value

A .NET Framework StringAlignment enumeration value that represents the alignment of the legend. The default value is Near.

Attributes

Remarks

The legend can be aligned so that it is Near, Center or Far; its alignment is also affected by the Docking property setting.

If the legend is docked to the top or bottom, Near is to the left; if it is docked to the left or right, Near is at the top. The Far property setting is just the opposite, and aligns the legend to the right or the bottom, depending on where it is docked.

Center always centers the legend, either vertically or horizontally.

Setting the Alignment property will have no effect if the Position property is not set to Auto.

Applies to