[]
The Style class is used to describe the appearance of various elements of the chart, including the chart itself, the ChartArea, the Legend, the Header, the Footer and Labels. Typically, an object’s style and/or one or more of its properties are inherited the object’s parent style or its default style. All Style properties have an associated Reset Method that restores the style property inheritance state.
[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 opaqueness of the background. |
Rotation | Gets or sets the text orientation. |
VerticalAlignment | Gets or sets the text vertical alignment. |
VerticalText | Gets or sets whether text is displayed vertically. |
Name | Description |
---|---|
ResetAutowrap() | Resets the inheritance state of the style Autowrap. |
ResetBackColor() | Resets the inheritance state of the element backcolor. |
ResetBorder() | Resets the inheritance state of the element border. |
ResetFont() | Resets the inheritance state of the element font. |
ResetForeColor() | Resets the inheritance state of the element forecolor. |
ResetHorizontalAlignment() | Resets the inheritance state of the element text horizontal alignment. |
ResetImageAlignment() | Resets the inheritance state of the element image alignment. |
ResetOpaque() | Resets the inheritance state of the element opaque. |
ResetRotation() | Resets the inheritance state of the element text rotation. |
ResetVerticalAlignment() | Resets the inheritance state of the element text vertical alignment. |
ResetVerticalText() | Resets the inheritance state of the style VerticalText. |
ShouldSerializeAutowrap() | Indicates whether the Autowrap has a default value. |
ShouldSerializeBackColor() | Indicates whether the BackColor has a default value. |
ShouldSerializeBackColor2() | Indicates whether the BackColor2 has a default value. |
ShouldSerializeBorder() | Indicates whether the Border has a default value. |
ShouldSerializeFont() | Indicates whether the Font has a default value. |
ShouldSerializeForeColor() | Returns false if the Style ForeColor property is in the default state. |
ShouldSerializeHorizontalAlignment() | Indicates whether the HorizontalAlignment has a default value. |
ShouldSerializeImageAlignment() | Indicates whether the ImageAlignment has a default value. |
ShouldSerializeOpaque() | Returns false if the Style Opaque property is in the default state. |
ShouldSerializeRotation() | Returns false if the Style Rotation property is in the default state. |
ShouldSerializeVerticalAlignment() | Returns false if the Style VerticalAlignment property is in the default state. |
ShouldSerializeVerticalText() | Returns false if the Style VerticalText property is in the default state. |