Annotation.AxisX 属性

定义

获取或设置批注所附加到的 X 轴。Gets or sets the X axis to which an annotation is attached.

public:
 virtual property System::Windows::Forms::DataVisualization::Charting::Axis ^ AxisX { System::Windows::Forms::DataVisualization::Charting::Axis ^ get(); void set(System::Windows::Forms::DataVisualization::Charting::Axis ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.AnnotationAxisValueConverter))]
public virtual System.Windows.Forms.DataVisualization.Charting.Axis AxisX { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.AnnotationAxisValueConverter))>]
member this.AxisX : System.Windows.Forms.DataVisualization.Charting.Axis with get, set
Public Overridable Property AxisX As Axis

属性值

Axis

批注所附加到的 Axis 对象。An Axis object to which the annotation is attached.

属性

注解

当批注附加到轴时,其 X 位置始终在轴坐标中指定。When an annotation is attached to an axis, its X position is always specified in axes coordinates. 若要在轴坐标中定义批注的大小,请确保 IsSizeAlwaysRelative 将属性设置为 falseTo also define the size of an annotation in axes coordinates, make sure the IsSizeAlwaysRelative property is set to false.

将此值设置为 null 以禁用到轴的附件。Set this value to null to disable attachment to the axis.

适用于