ChartArea.InnerPlotPosition 属性
定义
获取或设置 ElementPosition 对象,该对象定义图表区域对象的内部绘图位置。Gets or sets an ElementPosition object, which defines the inner plot position of a chart area object.
public:
property System::Web::UI::DataVisualization::Charting::ElementPosition ^ InnerPlotPosition { System::Web::UI::DataVisualization::Charting::ElementPosition ^ get(); void set(System::Web::UI::DataVisualization::Charting::ElementPosition ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.ElementPositionConverter))]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.DataVisualization.Charting.ElementPosition InnerPlotPosition { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.ElementPositionConverter))>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.InnerPlotPosition : System.Web.UI.DataVisualization.Charting.ElementPosition with get, set
Public Property InnerPlotPosition As ElementPosition
属性值
一个 ElementPosition 对象,该对象定义 ChartArea 对象的内部绘图位置。An ElementPosition object, which defines the inner plot position of a ChartArea object.
- 属性
注解
InnerPlotPosition属性定义用于绘制数据的图表区元素内的矩形; 它不包括刻度线和轴标签等。The InnerPlotPosition property defines the rectangle within a chart area element that is used for plotting data; it excludes tick marks, axis labels, and so forth.
用于此属性的坐标 (0,0到 100100) 与 ChartArea 对象相关,而不是与整个对象相关 Chart 。The coordinates used for this property (0,0 to 100,100) are related to the ChartArea object, and not to the entire Chart.
InnerPlotPosition属性可用于对齐多个图表区。The InnerPlotPosition property can be used to align multiple chart areas. 但是,如果一个图表区有刻度线和轴标签,而另一个图表区不存在,则无法对齐它们的轴线。However, if one chart area has tick marks and axis labels and another one does not, their axis lines cannot be aligned.
重要
此属性还可用于更改图表(例如饼图或圆环图)的大小,而无需更改生成的图表图像的大小。This property can also be used to change the size of charts, such as pie or doughnut, without changing the size of the generated chart image.
若要更改整个对象的位置, ChartArea 请改用 Position 属性。To change the position of an entire ChartArea object use the Position property instead.