Legend.IsDockedInsideChartArea 属性
定义
获取或设置可指示图例是停靠在图表区域内还是其外的标志。Gets or sets a flag that indicates whether the legend is docked inside or outside the chart area.
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。true if the legend is docked inside the chart area; false if it is docked outside the chart area. 默认值是 false。The default value is false.
- 属性
注解
仅当 DockedToChartArea 属性设置为对象的名称时,此属性才会生效 ChartArea 。This property will only have an effect if the DockedToChartArea property is set to the name of a ChartArea object.
备注
如果 Position 将属性设置为除以外的任何值 Auto ,则 IsDockedInsideChartArea 属性也不起作用。If the Position property is set to any value other than Auto, the IsDockedInsideChartArea property also has no effect. 这是因为图例的位置由 Position 属性设置确定。This is because the position of the legend is determined by the Position property setting.