[]
The Style class is used to describe the appearance of various elements of the chart, include the chart itself, the ChartArea, the Legend, the Header, the Footer and Labels. Typically, an object’s style and one or more of its properties are inherited the object’s parent.
[TypeConverter(typeof(c1ChartTypeConverter))]
public class Style
| Name | Description |
|---|---|
| Autowrap | Gets or sets whether the text is automatically wrapped. |
| BackColor | Gets or sets the background color. |
| BackColor2 | Gets or sets the gradient or hatch background. |
| Border | Gets the border object. |
| Font | Gets or sets the font object. |
| ForeColor | Gets or sets the foreground color. |
| GradientStyle | Defines the style of the background gradient filling. |
| HatchStyle | Defines the style of the background hatch filling. |
| HorizontalAlignment | Gets or sets the text horizontal alignment. |
| ImageAlignment | Gets or sets the image alignment. |
| Opaque | Gets or sets the whether the background is opaque. |
| Rotation | Gets or sets the text rotational orientation. |
| VerticalAlignment | Gets or sets the text vertical alignment. |
| VerticalText | Gets or sets whether text is displayed vertically. |
| Name | Description |
|---|---|
| ResetAutowrap() | Resets Autowrap property to the default state. |
| ResetBorder() | Resets the border to the default state. |
| ResetVerticalText() | Resets the inheritance state of the style VerticalText. |
| ShouldSerializeAutowrap() | Returns false if the Style Autowrap property is in the default state. |
| ShouldSerializeBackColor() | Returns false if the Style BackColor property is in the default state. |
| ShouldSerializeBackColor2() | Returns false if the Style BackColor2 property is in the default state. |
| ShouldSerializeFont() | Returns false if the Style Font property is in the default state. |
| ShouldSerializeForeColor() | Returns false if the Style ForeColor property is in the default state. |
| ShouldSerializeVerticalText() | Returns false if the Style VerticalText property is in the default state. |