LegendCell.Alignment Property


Gets or sets the alignment of the legend cell contents.

 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

Property Value

A ContentAlignment value that represents the alignment of the legend cell contents. The default value is MiddleCenter.


The Alignment property is used to align text, series symbols or images within the legend cell.

Applies to