API Reference
ChartGridLineStyle
Defines reusable visual tokens for cartesian grid and guide lines.
Inheritance
- Object
- ChartGridLineStyle
Usage
Explore 12 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 10
- Method ChartGridLineStyle.Clone
- Method ChartGridLineStyle.DashboardVerticalGuides
- Method ChartGridLineStyle.Default
- Method ChartGridLineStyle.WithDash
- Method ChartGridLineStyle.WithHorizontalLines
- Method ChartGridLineStyle.WithHorizontalOpacity
- Method ChartGridLineStyle.WithStrokeWidth
- Method ChartGridLineStyle.WithVerticalLines
- Method ChartGridLineStyle.WithVerticalOpacity
- Property ChartOptions.GridLineStyle
Accepted by parameters 2
- Method Chart.ConfigureGridStyle
- Method Chart.WithGridStyle
Constructors
public ChartGridLineStyle() #Methods
public ChartGridLineStyle Clone() #ChartGridLineStyleCreates a copy that can be safely reused and customized.
public static ChartGridLineStyle DashboardVerticalGuides() #ChartGridLineStyleCreates a dashboard guide style with vertical dashed category guides.
public static ChartGridLineStyle Default() #ChartGridLineStyleCreates the default cartesian grid style.
public ChartGridLineStyle WithDash(Double dash, Double gap) #ChartGridLineStyleSets the dash and gap lengths. Use zero dash for solid lines.
Parameters
- dash System.Double
- gap System.Double
public ChartGridLineStyle WithHorizontalLines(Boolean visible = true) #ChartGridLineStyleSets whether horizontal value grid lines are drawn.
Parameters
- visible System.Boolean = true
public ChartGridLineStyle WithHorizontalOpacity(Double opacity) #ChartGridLineStyleSets horizontal grid line opacity.
Parameters
- opacity System.Double
public ChartGridLineStyle WithStrokeWidth(Double width) #ChartGridLineStyleSets grid line stroke width.
Parameters
- width System.Double
public ChartGridLineStyle WithVerticalLines(Boolean visible = true) #ChartGridLineStyleSets whether vertical category grid lines are drawn.
Parameters
- visible System.Boolean = true
public ChartGridLineStyle WithVerticalOpacity(Double opacity) #ChartGridLineStyleSets vertical grid line opacity.
Parameters
- opacity System.Double
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public Boolean ShowHorizontalLines { get; set; } #Gets or sets whether horizontal value grid lines are drawn.
public Boolean ShowVerticalLines { get; set; } #Gets or sets whether vertical category grid lines are drawn.
public Double HorizontalOpacity { get; set; } #Gets or sets horizontal grid line opacity.
public Double VerticalOpacity { get; set; } #Gets or sets vertical grid line opacity.
public Double StrokeWidth { get; set; } #Gets or sets grid line stroke width.
public Double Dash { get; set; } #Gets or sets the dash length. Zero renders solid lines.
public Double Gap { get; set; } #Gets or sets the dash gap length.