Spread WPF Documentation
MinorTickThickness Property
Example 


Gets or sets the minor tick thickness.
Syntax
'Declaration
 
Public Property MinorTickThickness As System.Double
'Usage
 
Dim instance As Axis
Dim value As System.Double
 
instance.MinorTickThickness = value
 
value = instance.MinorTickThickness
public System.double MinorTickThickness {get; set;}
Example
This example sets the MinorTickThickness property.
GrapeCity.Windows.SpreadSheet.Data.SpreadChart chart = new GrapeCity.Windows.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Windows.SpreadSheet.Data.SpreadChartType.BarStacked, "Sheet1!$A$1:$A$7", 0,0, 200, 200);
gcSpreadSheet1.ActiveSheet.SetArray(0, 0, new object[,] { { 1 }, { 2 }, { 3 }, { 4 }, { 5 }, { 6 }, { 7 }, { 8 }, { 9 }, { 10 } });
chart.AxisX.MinorGridlinesStroke = new SolidColorBrush(Colors.Crimson);
chart.AxisX.MinorGridlinesStrokeDashType = GrapeCity.Windows.SpreadSheet.Data.StrokeDashType.Dash;
chart.AxisX.MinorGridlinesStrokeThickness = 2;
chart.AxisX.MinorTickHeight = 10;
chart.AxisX.MinorTickPosition = GrapeCity.Windows.SpreadSheet.Data.AxisTickPosition.Cross;
chart.AxisX.MinorTickStroke = new SolidColorBrush(Colors.DarkGoldenrod);
chart.AxisX.MinorTickThickness = 2;
chart.AxisY.MinorGridlinesStroke = new SolidColorBrush(Colors.Aqua);
chart.AxisY.MinorGridlinesStrokeDashType = GrapeCity.Windows.SpreadSheet.Data.StrokeDashType.Dash;
chart.AxisY.MinorGridlinesStrokeThickness = 2;
chart.AxisY.MinorTickHeight = 10;
chart.AxisY.MinorTickPosition = GrapeCity.Windows.SpreadSheet.Data.AxisTickPosition.Cross;
chart.AxisY.MinorTickStroke = new SolidColorBrush(Colors.Beige);
chart.AxisY.MinorTickThickness = 2;
gcSpreadSheet1.ActiveSheet.Charts.Add(chart);
Dim chart As New GrapeCity.Windows.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Windows.SpreadSheet.Data.SpreadChartType.BarStacked, "Sheet1!$A$1:$A$7", 0, 0, 200, 200)
GcSpreadSheet1.ActiveSheet.SetArray(0, 0, New Object(,) {{1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}})
chart.AxisX.MinorGridlinesStroke = New SolidColorBrush(Colors.Crimson)
chart.AxisX.MinorGridlinesStrokeDashType = GrapeCity.Windows.SpreadSheet.Data.StrokeDashType.Dash
chart.AxisX.MinorGridlinesStrokeThickness = 2
chart.AxisX.MinorTickHeight = 10
chart.AxisX.MinorTickPosition = GrapeCity.Windows.SpreadSheet.Data.AxisTickPosition.Cross
chart.AxisX.MinorTickStroke = New SolidColorBrush(Colors.DarkGoldenrod)
chart.AxisX.MinorTickThickness = 2
chart.AxisY.MinorGridlinesStroke = New SolidColorBrush(Colors.Aqua)
chart.AxisY.MinorGridlinesStrokeDashType = GrapeCity.Windows.SpreadSheet.Data.StrokeDashType.Dash
chart.AxisY.MinorGridlinesStrokeThickness = 2
chart.AxisY.MinorTickHeight = 10
chart.AxisY.MinorTickPosition = GrapeCity.Windows.SpreadSheet.Data.AxisTickPosition.Cross
chart.AxisY.MinorTickStroke = New SolidColorBrush(Colors.Beige)
chart.AxisY.MinorTickThickness = 2
GcSpreadSheet1.ActiveSheet.Charts.Add(chart)
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)

See Also

Reference

Axis Class
Axis Members

 

 


Copyright © GrapeCity, inc. All rights reserved.