Share via


Legend.IsDockedInsideChartArea 属性

定义

获取或设置可指示图例是停靠在图表区域内还是其外的标志。

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

属性值

如果图例停靠在图表区域内,则为 true;如果图例停靠在图表区域外,则为 false。 默认值是 false

属性

注解

仅当属性设置为对象的名称ChartArea时,DockedToChartArea此属性才有效。

注意

如果 属性 Position 设置为 以外的 Auto任何值,则 属性 IsDockedInsideChartArea 也不起作用。 这是因为图例的位置由 Position 属性设置决定。

适用于