Legend.Position 属性

定义

获取或设置一个 ElementPosition 对象,该对象可用于获取或设置图例的位置。

public:
 property System::Windows::Forms::DataVisualization::Charting::ElementPosition ^ Position { System::Windows::Forms::DataVisualization::Charting::ElementPosition ^ get(); void set(System::Windows::Forms::DataVisualization::Charting::ElementPosition ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.ElementPositionConverter))]
public System.Windows.Forms.DataVisualization.Charting.ElementPosition Position { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.ElementPositionConverter))>]
member this.Position : System.Windows.Forms.DataVisualization.Charting.ElementPosition with get, set
Public Property Position As ElementPosition

属性值

Position如果属性为自动(即 Legend.Position.Auto = true),则图例位置由Chart控件自动计算,同时考虑DockingAlignment属性设置和IsDockedInsideChartArea属性设置。

如果它不是自动的,则DockingDockedToChartArea忽略和IsDockedInsideChartArea属性,并且图例位置完全由返回ElementPosition的对象的值决定。

属性

适用于