Axis.MajorGrid 属性

定义

获取或设置一个 Grid 对象,该对象用于设置轴的主要网格线属性。

public:
 property System::Windows::Forms::DataVisualization::Charting::Grid ^ MajorGrid { System::Windows::Forms::DataVisualization::Charting::Grid ^ get(); void set(System::Windows::Forms::DataVisualization::Charting::Grid ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.NoNameExpandableObjectConverter))]
public System.Windows.Forms.DataVisualization.Charting.Grid MajorGrid { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.NoNameExpandableObjectConverter))>]
member this.MajorGrid : System.Windows.Forms.DataVisualization.Charting.Grid with get, set
Public Property MajorGrid As Grid

属性值

Grid用于获取或设置轴的主要网格属性的对象。

属性

注解

主要网格线始终与数据点一起绘制。 也就是说,对于分类轴刻度线,它们将与数据点沿轴的同一点发生。 对于值轴,默认情况下,无论标签在何处绘制主要网格线。

可以使用此属性更改主要网格线频率、颜色等。

适用于