Legend.Alignment Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)]
public System.Drawing.StringAlignment Alignment { get; set; }
[<System.ComponentModel.Bindable(true)>]
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈