Share via


ViewEventArgs.NewSizeType 属性

定义

获取视图新尺寸的度量单位。

public:
 property System::Windows::Forms::DataVisualization::Charting::DateTimeIntervalType NewSizeType { System::Windows::Forms::DataVisualization::Charting::DateTimeIntervalType get(); void set(System::Windows::Forms::DataVisualization::Charting::DateTimeIntervalType value); };
public System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType NewSizeType { get; set; }
member this.NewSizeType : System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType with get, set
Public Property NewSizeType As DateTimeIntervalType

属性值

用于表示 DateTimeIntervalType 属性的度量单位的 NewSize 枚举值,该属性表示数据视图的宽度或高度。 默认值是 Auto

注解

当此属性设置为 Auto时,属性的度量 NewSize 单位由 Chart 控件自动确定,并且为数字或天。

回想一下, NewSize 属性始终测量为轴值。 请确保如果显式设置大小类型,则类型与滚动条所属的轴匹配。 换句话说,不要指定 Minutes 轴是否不使用 DateTime 值。

请注意,属性 NewSize 可以在 事件中 AxisViewChanging 设置为新值,但不能设置为事件的新值 AxisViewChanged ,因为视图已创建。

适用于