UIChartElement
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
public static RadProperty BackColor2Property
public static RadProperty BackColor3Property
public static RadProperty BackColor4Property
public static RadProperty BackColorProperty
public static RadProperty BackgroundShapeProperty
public static RadProperty BorderBottomColorProperty
public static RadProperty BorderBottomShadowColorProperty
public static RadProperty BorderBottomWidthProperty
public static RadProperty BorderBoxStyleProperty
public static RadProperty BorderColor2Property
public static RadProperty BorderColor3Property
public static RadProperty BorderColor4Property
public static RadProperty BorderColorProperty
public static RadProperty BorderCornerRadiusProperty
public static RadProperty BorderDashPatternProperty
public static RadProperty BorderDashStyleProperty
public static RadProperty BorderDrawModeProperty
public static RadProperty BorderGradientAngleProperty
public static RadProperty BorderGradientStyleProperty
public static RadProperty BorderInnerColor2Property
public static RadProperty BorderInnerColor3Property
public static RadProperty BorderInnerColor4Property
public static RadProperty BorderInnerColorProperty
public static RadProperty BorderLeftColorProperty
public static RadProperty BorderLeftShadowColorProperty
public static RadProperty BorderLeftWidthProperty
public static RadProperty BorderRightColorProperty
public static RadProperty BorderRightShadowColorProperty
public static RadProperty BorderRightWidthProperty
public static RadProperty BorderTopColorProperty
public static RadProperty BorderTopShadowColorProperty
public static RadProperty BorderTopWidthProperty
public static RadProperty BorderWidthProperty
public static RadProperty ClassProperty
public static RadProperty CustomFontProperty
public static RadProperty CustomFontSizeProperty
public static RadProperty CustomFontStyleProperty
public static RadProperty FontProperty
public static RadProperty ForeColorProperty
public static RadProperty GradientAngleProperty
public static RadProperty GradientPercentage2Property
public static RadProperty GradientPercentageProperty
public static RadProperty GradientStyleProperty
public static RadProperty IsMouseDownProperty
public static RadProperty IsMouseOverProperty
public static RadProperty IsVisibleProperty
public static RadProperty NumberOfColorsProperty
public static RadProperty PaddingProperty
public static RadProperty ShapeProperty
public static RadProperty SmoothingModeProperty
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 ElementShapeEditor UITypeEditor.
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()
Raises the RadPropertyChanged event and the standard .NET PropertyChanged event to notify subscribers of property value changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The RadPropertyChangedEventArgs containing information about the property change.
Overrides:
Refreshes the UIChartElement.
public virtual void Refresh()