UIChartElement
Base class for chart-view elements, providing their shared visual properties, hierarchy, visibility, and theme integration.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.ChartView.dll
Syntax:
public abstract class UIChartElement : RadObject, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IChartElementPresenter, IStylableElement, IStylableNode, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IShapedElement
Inheritance: objectDisposableObjectRadObjectUIChartElement
Derived Classes:
Implements:
Inherited Members
Constructors
Initialized a new instance of the UIChartElement class.
public UIChartElement()
Fields
Identifies the BackColor2 property in the RadProperty system.
public static RadProperty BackColor2Property
Identifies the BackColor3 property in the RadProperty system.
public static RadProperty BackColor3Property
Identifies the BackColor4 property in the RadProperty system.
public static RadProperty BackColor4Property
Identifies the BackColor property in the RadProperty system.
public static RadProperty BackColorProperty
Identifies the BackgroundShape property in the RadProperty system.
public static RadProperty BackgroundShapeProperty
Identifies the BorderBottomColor property in the RadProperty system.
public static RadProperty BorderBottomColorProperty
Identifies the BorderBottomShadowColor property in the RadProperty system.
public static RadProperty BorderBottomShadowColorProperty
Identifies the BorderBottomWidth property in the RadProperty system.
public static RadProperty BorderBottomWidthProperty
Identifies the BorderBoxStyle property in the RadProperty system.
public static RadProperty BorderBoxStyleProperty
Identifies the BorderColor2 property in the RadProperty system.
public static RadProperty BorderColor2Property
Identifies the BorderColor3 property in the RadProperty system.
public static RadProperty BorderColor3Property
Identifies the BorderColor4 property in the RadProperty system.
public static RadProperty BorderColor4Property
Identifies the BorderColor property in the RadProperty system.
public static RadProperty BorderColorProperty
Identifies the BorderCornerRadius property in the RadProperty system.
public static RadProperty BorderCornerRadiusProperty
Identifies the BorderDashPattern property in the RadProperty system.
public static RadProperty BorderDashPatternProperty
Identifies the BorderDashStyle property in the RadProperty system.
public static RadProperty BorderDashStyleProperty
Identifies the BorderDrawMode property in the RadProperty system.
public static RadProperty BorderDrawModeProperty
Identifies the BorderGradientAngle property in the RadProperty system.
public static RadProperty BorderGradientAngleProperty
Identifies the BorderGradientStyle property in the RadProperty system.
public static RadProperty BorderGradientStyleProperty
Identifies the BorderInnerColor2 property in the RadProperty system.
public static RadProperty BorderInnerColor2Property
Identifies the BorderInnerColor3 property in the RadProperty system.
public static RadProperty BorderInnerColor3Property
Identifies the BorderInnerColor4 property in the RadProperty system.
public static RadProperty BorderInnerColor4Property
Identifies the BorderInnerColor property in the RadProperty system.
public static RadProperty BorderInnerColorProperty
Identifies the BorderLeftColor property in the RadProperty system.
public static RadProperty BorderLeftColorProperty
Identifies the BorderLeftShadowColor property in the RadProperty system.
public static RadProperty BorderLeftShadowColorProperty
Identifies the BorderLeftWidth property in the RadProperty system.
public static RadProperty BorderLeftWidthProperty
Identifies the BorderRightColor property in the RadProperty system.
public static RadProperty BorderRightColorProperty
Identifies the BorderRightShadowColor property in the RadProperty system.
public static RadProperty BorderRightShadowColorProperty
Identifies the BorderRightWidth property in the RadProperty system.
public static RadProperty BorderRightWidthProperty
Identifies the BorderTopColor property in the RadProperty system.
public static RadProperty BorderTopColorProperty
Identifies the BorderTopShadowColor property in the RadProperty system.
public static RadProperty BorderTopShadowColorProperty
Identifies the BorderTopWidth property in the RadProperty system.
public static RadProperty BorderTopWidthProperty
Identifies the BorderWidth property in the RadProperty system.
public static RadProperty BorderWidthProperty
Identifies the Class property in the RadProperty system.
public static RadProperty ClassProperty
Identifies the CustomFont property in the RadProperty system.
public static RadProperty CustomFontProperty
Identifies the CustomFontSize property in the RadProperty system.
public static RadProperty CustomFontSizeProperty
Identifies the CustomFontStyle property in the RadProperty system.
public static RadProperty CustomFontStyleProperty
Identifies the Font property in the RadProperty system.
public static RadProperty FontProperty
Identifies the ForeColor property in the RadProperty system.
public static RadProperty ForeColorProperty
Identifies the GradientAngle property in the RadProperty system.
public static RadProperty GradientAngleProperty
Identifies the GradientPercentage2 property in the RadProperty system.
public static RadProperty GradientPercentage2Property
Identifies the GradientPercentage property in the RadProperty system.
public static RadProperty GradientPercentageProperty
Identifies the GradientStyle property in the RadProperty system.
public static RadProperty GradientStyleProperty
Identifies the IsMouseDown property in the RadProperty system.
public static RadProperty IsMouseDownProperty
Identifies the IsMouseOver property in the RadProperty system.
public static RadProperty IsMouseOverProperty
Identifies the IsVisible property in the RadProperty system.
public static RadProperty IsVisibleProperty
Identifies the NumberOfColors property in the RadProperty system.
public static RadProperty NumberOfColorsProperty
Identifies the Padding property in the RadProperty system.
public static RadProperty PaddingProperty
Identifies the Shape property in the RadProperty system.
public static RadProperty ShapeProperty
Identifies the SmoothingMode property in the RadProperty system.
public static RadProperty SmoothingModeProperty
Identifies the VisualState property in the RadProperty system.
public static RadProperty VisualStateProperty
Properties
Gets or sets the back color.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BackColor { get; set; }
The color of the back.
Implements:
Gets or sets the back color2.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BackColor2 { get; set; }
The back color2.
Implements:
Gets or sets the back color3.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BackColor3 { get; set; }
The back color3.
Implements:
Gets or sets the back color4.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BackColor4 { get; set; }
The back color4.
Implements:
Gets or sets the RadImageShape that describes the background of the element.
[Browsable(false)]
[VsbBrowsable(true)]
public RadImageShape BackgroundShape { get; set; }
Gets and sets the bottom border color. This applies only if FourBorders is chosen for BoxStyle property, and affects only the bottom border.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderBottomColor { get; set; }
Gets and sets the bottom shadow color. This option applies only if fourBorders is chosen, and affects only the bottom border.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderBottomShadowColor { get; set; }
Gets or sets a float value width. This property has effect only if FourBorders style is used in BoxStyle property, and affects only the bottom border.
public float BorderBottomWidth { get; set; }
Gets or sets the Border style. The two possible values are SingleBorder and FourBorder. In the single border case, all four sides share the same appearance although the entire border may have gradient. In four border case, each of the four sides may differ in appearance. For example, the left border may have different color, shadowcolor, and width from the rest. When SingleBorder is chosen, you should use the general properties such as width and color, and respectively, when the FourBorder style is chosen you should use properties prefixed with the corresponding side, for example, LeftColor, LeftWidth for the left side.
public BorderBoxStyle BorderBoxStyle { get; set; }
Gets or sets the color of the border.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderColor { get; set; }
The color of the border.
Gets or sets color used by radial, glass, office glass, gel, and vista gradients. This is one of the colors that are used in the gradient effect.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderColor2 { get; set; }
Gets or sets color used by radial, glass, office glass, and vista gradients. This is one of the colors that are used in the gradient effect.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderColor3 { get; set; }
Gets or sets color used by radial, glass, office glass, and vista gradients. This is one of the colors that are used in the gradient effect.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderColor4 { get; set; }
Gets or sets the border corner radius.
[Browsable(true)]
public int BorderCornerRadius { get; set; }
The border corner radius.
Specifies the style of dashed lines drawn with a border.
public float[] BorderDashPattern { get; set; }
Implements:
Specifies the style of dashed lines drawn with a border.
public DashStyle BorderDashStyle { get; set; }
Implements:
public BorderDrawModes BorderDrawMode { get; set; }
Implements:
Gets or sets gradient angle for linear gradient measured in degrees.
public float BorderGradientAngle { get; set; }
Gets or sets gradient style. Possible styles are solid, linear, radial, glass, office glass, gel, and vista.
public GradientStyles BorderGradientStyle { get; set; }
Gets or sets color used by radial, glass, office glass, gel, and vista gradients. This is one of the colors that are used in the gradient effect.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderInnerColor { get; set; }
Gets or sets color used by radial, glass, office glass, gel, and vista gradients. This is one of the colors that are used in the gradient effect.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderInnerColor2 { get; set; }
Gets or sets color used by radial, glass, office glass, gel, and vista gradients. This is one of the colors that are used in the gradient effect.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderInnerColor3 { get; set; }
Gets or sets color used by radial, glass, office glass, gel, and vista gradients. This is one of the colors that are used in the gradient effect.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderInnerColor4 { get; set; }
Gets and sets the left border color. This applies only if FourBorders is chosen for BoxStyle property, and affects only the left border.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderLeftColor { get; set; }
Gets and sets the left shadow color. This option applies only if fourBorders is chosen, and affects only the left border.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderLeftShadowColor { get; set; }
Gets or sets a float value width of the left border. This property has effect only if FourBorders style is used in BoxStyle property and affects only the width of the left border.
public float BorderLeftWidth { get; set; }
Gets and sets the right border color. This applies only if FourBorders is chosen for BoxStyle property, and affects only the right border.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderRightColor { get; set; }
Gets and sets the right shadow color. This option applies only if fourBorders is chosen, and affects only the right border.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderRightShadowColor { get; set; }
Gets or sets a float value width of the right border. This property has effect only if FourBorders style is used in BoxStyle property, and affects only the right border.
public float BorderRightWidth { get; set; }
Gets and sets the top border color. This applies only if FourBorders is chosen for BoxStyle property, and affects only the top border.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderTopColor { get; set; }
Gets and sets the top shadow color. This option applies only if fourBorders is chosen, and affects only the top border.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderTopShadowColor { get; set; }
Gets or sets a float value width of the top border . This property has effect only if FourBorders style is used in BoxStyle property, and affects only the top border.
public float BorderTopWidth { get; set; }
Gets or sets a float value width of the left border. This property has effect only if FourBorders style is used in BoxStyle property and affects only the width of the left border.
public float BorderWidth { get; set; }
[Browsable(false)]
public ChartElementCollection Children { get; }
ChildrenHierarchy
IEnumerable<RadObject>
Gets the children hierarchy.
[Browsable(false)]
public IEnumerable<RadObject> ChildrenHierarchy { get; }
The children hierarchy.
Implements:
Gets the class.
[Browsable(false)]
public string Class { get; }
The class.
Implements:
Gets or sets the dpi scale factor.
public SizeF DpiScaleFactor { get; protected set; }
The dpi scale factor.
Gets whether to fallback to default theme.
[Browsable(false)]
public virtual bool FallbackToDefaultTheme { get; }
The fallback to default theme.
Implements:
Gets or sets the fore color.
[TypeConverter(typeof(RadColorEditorConverter))]
public Color ForeColor { get; set; }
The color of the fore.
Gets or sets the gradient angle.
public float GradientAngle { get; set; }
The gradient angle.
Implements:
Gets or sets the GradientPercentage.
public float GradientPercentage { get; set; }
Implements:
Gets or sets the GradientPercentage2.
public float GradientPercentage2 { get; set; }
Implements:
Gets or sets the gradient style.
public GradientStyles GradientStyle { get; set; }
Implements:
Gets if it is attached.
[Browsable(false)]
public bool IsAttached { get; }
The is attached.
Gets if the mouse is down.
[Browsable(false)]
public bool IsMouseDown { get; }
The is mouse down.
Gets if the mouse is over.
[Browsable(false)]
public bool IsMouseOver { get; }
The is mouse over.
Gets or sets whether the element is visible.
public virtual bool IsVisible { get; set; }
Implements:
Gets or sets the number of colors.
public int NumberOfColors { get; set; }
Implements:
Gets or sets the padding of the element.
public Padding Padding { get; set; }
The padding.
Gets or sets an instance of the Shape object of an element. The shape of the element is both responsible for clipping the element's children and for providing its' border(s) with custom shape.
[TypeConverter(typeof(ElementShapeConverter))]
public ElementShape Shape { get; set; }
Value of null (or Nothing in VisualBasic.Net) indicates that element has rectangular (or no) shape. Shape is an object that defines the bounding graphics path of an element. Graphics clip is always applied when an element has shape. Shape is considered when painting the border element, and when hit-testing an element. Some predefined shapes are available, like RoundRectShape or EllipseShape. CustomShape offers a way to specify element's shape with a sequance of points and curves using code or the design time ElementShapeEditorUITypeEditor.
Gets or sets the size of the element which is the height and width of the visual rectangle that would contain the graphics of the element.
[Browsable(true)]
public virtual Size Size { get; set; }
Implements:
Gets or sets the SmoothingMode of the element.
public SmoothingMode SmoothingMode { get; set; }
Implements:
StateManager
ItemStateManagerBase
Gets or sets the state manager.
[Browsable(false)]
public virtual ItemStateManagerBase StateManager { get; set; }
The state manager.
Implements:
Gets or sets the style.
[Browsable(false)]
public virtual StyleSheet Style { get; set; }
The style.
Implements:
Gets or sets the theme role.
[Browsable(false)]
public virtual string ThemeRole { get; set; }
The theme role.
Implements:
Gets the view.
[Browsable(false)]
public ChartView View { get; }
The view.
Gets or sets the state of the visual.
[Browsable(false)]
public virtual string VisualState { get; set; }
The state of the visual.
Implements:
Methods
Registers a style setting for this instance.
protected override ValueUpdateResult AddStylePropertySetting(IPropertySetting setting)
Overrides:
Applies the style.
protected virtual void ApplyStyle()
Applies the style by the index.
protected virtual void ApplyStyleByIndex(PropertySettingGroup group, int index)
The group.
indexintThe index.
Applies the style settings.
protected virtual void ApplyStyleSettingsCore(PropertySettingGroup group)
The group.
Attaches the specified parent.
Builds the visual state.
protected virtual void BuildVisualState()
Dettaches this instance.
public void Dettach()
Called when DPI scale is changed.
protected virtual void DpiScaleChanged(SizeF scaleFactor)
The scale factor.
Gets the current shape.
Gets the type of the theme effective.
Retrieves the current value for the specified property.
public override object GetValue(RadProperty property)
Overrides:
Invalidates the UIChartElement.
public virtual void Invalidate()
Called when [attached].
protected virtual void OnAttached(UIChartElement parent)
The parent.
Called when [dettached].
protected virtual void OnDettached()
Reapplies the style when the visual state changes and resolves custom font settings when they change.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The changed RadProperty and its change notification.
Overrides:
Refreshes the UIChartElement.
public virtual void Refresh()