Gets or sets the legend's alignment.
Legend alignment
Visual Basic (Declaration) | |
---|---|
Public Property Alignment As StringAlignment |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public StringAlignment Alignment {get; set;} |
Return Value
A .NET Framework StringAlignment enumeration value that represents the legend's alignment. The default is Near.
The legend can be aligned so that it is Near, Center or Far, and is affected by the Docking property setting.
If it is docked to the top or bottom then Near is to the left, otherwise it is to the top. The Far property setting is opposite to the Near setting.
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.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family