Axis.MajorGrid 属性
定义
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 对象,该对象用于获取或设置轴的主要网格线属性。A Grid object used to get or set the major grid properties of an axis.
- 属性
注解
主要网格线始终与数据点一起绘制。Major grid lines are always drawn in conjunction with a data point. 也就是说,它们将在轴上与数据点一起出现在同一点,用于分类轴刻度线。That is, they will occur at the same point along an axis as a data point, for categorical axis tick marks. 对于值轴,默认情况下会绘制主要网格线,无论标签出现在何处。For value axes, major grid lines by default are drawn wherever labels occur.
您可以使用此属性更改主网格线频率、颜色等。You can use this property to change major grid line frequency, color, and so forth.