Spread Silverlight Documentation
GrapeCity.Windows.SpreadSheet.Data Namespace / Axis Class / MajorGridlinesStroke Property
Example


In This Topic
    MajorGridlinesStroke Property (Axis)
    In This Topic
    Gets or sets the brush of major grid lines.
    Syntax
    'Declaration
     
    Public Property MajorGridlinesStroke As Brush
    'Usage
     
    Dim instance As Axis
    Dim value As Brush
     
    instance.MajorGridlinesStroke = value
     
    value = instance.MajorGridlinesStroke
    public Brush MajorGridlinesStroke {get; set;}
    Example
    This example sets the MajorGridlinesStroke 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.MajorGridlinesStroke = new SolidColorBrush(Colors.Red);
    chart.AxisX.MajorGridlinesStrokeDashType = GrapeCity.Windows.SpreadSheet.Data.StrokeDashType.Dash;
    chart.AxisX.MajorGridlinesStrokeThickness = 2;
    chart.AxisX.MajorTickHeight = 10;
    chart.AxisX.MajorTickPosition = GrapeCity.Windows.SpreadSheet.Data.AxisTickPosition.Cross;
    chart.AxisX.MajorTickStroke = new SolidColorBrush(Colors.Yellow);
    chart.AxisX.MajorTickThickness = 2;
    chart.AxisY.MajorGridlinesStroke = new SolidColorBrush(Colors.Orange);
    chart.AxisY.MajorGridlinesStrokeDashType = GrapeCity.Windows.SpreadSheet.Data.StrokeDashType.Dash;
    chart.AxisY.MajorGridlinesStrokeThickness = 2;
    chart.AxisY.MajorTickHeight = 10;
    chart.AxisY.MajorTickPosition = GrapeCity.Windows.SpreadSheet.Data.AxisTickPosition.Cross;
    chart.AxisY.MajorTickStroke = new SolidColorBrush(Colors.Magenta);
    chart.AxisY.MajorTickThickness = 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.MajorGridlinesStroke = New SolidColorBrush(Colors.Red)
    chart.AxisX.MajorGridlinesStrokeDashType = GrapeCity.Windows.SpreadSheet.Data.StrokeDashType.Dash
    chart.AxisX.MajorGridlinesStrokeThickness = 2
    chart.AxisX.MajorTickHeight = 10
    chart.AxisX.MajorTickPosition = GrapeCity.Windows.SpreadSheet.Data.AxisTickPosition.Cross
    chart.AxisX.MajorTickStroke = New SolidColorBrush(Colors.Yellow)
    chart.AxisX.MajorTickThickness = 2
    chart.AxisY.MajorGridlinesStroke = New SolidColorBrush(Colors.Orange)
    chart.AxisY.MajorGridlinesStrokeDashType = GrapeCity.Windows.SpreadSheet.Data.StrokeDashType.Dash
    chart.AxisY.MajorGridlinesStrokeThickness = 2
    chart.AxisY.MajorTickHeight = 10
    chart.AxisY.MajorTickPosition = GrapeCity.Windows.SpreadSheet.Data.AxisTickPosition.Cross
    chart.AxisY.MajorTickStroke = New SolidColorBrush(Colors.Magenta)
    chart.AxisY.MajorTickThickness = 2
    GcSpreadSheet1.ActiveSheet.Charts.Add(chart)
    See Also