ClassUIChartElement
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
UIChartElement()
Initialized a new instance of the UIChartElement class.
Declaration
public UIChartElement()
Fields
BackgroundShapeProperty
Declaration
public static RadProperty BackgroundShapeProperty
Field Value
BorderBottomColorProperty
Declaration
public static RadProperty BorderBottomColorProperty
Field Value
BorderBottomShadowColorProperty
Declaration
public static RadProperty BorderBottomShadowColorProperty
Field Value
BorderBottomWidthProperty
Declaration
public static RadProperty BorderBottomWidthProperty
Field Value
BorderBoxStyleProperty
Declaration
public static RadProperty BorderBoxStyleProperty
Field Value
BorderColor2Property
Declaration
public static RadProperty BorderColor2Property
Field Value
BorderColor3Property
Declaration
public static RadProperty BorderColor3Property
Field Value
BorderColor4Property
Declaration
public static RadProperty BorderColor4Property
Field Value
BorderCornerRadiusProperty
Declaration
public static RadProperty BorderCornerRadiusProperty
Field Value
BorderDashPatternProperty
Declaration
public static RadProperty BorderDashPatternProperty
Field Value
BorderDashStyleProperty
Declaration
public static RadProperty BorderDashStyleProperty
Field Value
BorderDrawModeProperty
Declaration
public static RadProperty BorderDrawModeProperty
Field Value
BorderGradientAngleProperty
Declaration
public static RadProperty BorderGradientAngleProperty
Field Value
BorderGradientStyleProperty
Declaration
public static RadProperty BorderGradientStyleProperty
Field Value
BorderInnerColor2Property
Declaration
public static RadProperty BorderInnerColor2Property
Field Value
BorderInnerColor3Property
Declaration
public static RadProperty BorderInnerColor3Property
Field Value
BorderInnerColor4Property
Declaration
public static RadProperty BorderInnerColor4Property
Field Value
BorderInnerColorProperty
Declaration
public static RadProperty BorderInnerColorProperty
Field Value
BorderLeftColorProperty
Declaration
public static RadProperty BorderLeftColorProperty
Field Value
BorderLeftShadowColorProperty
Declaration
public static RadProperty BorderLeftShadowColorProperty
Field Value
BorderLeftWidthProperty
Declaration
public static RadProperty BorderLeftWidthProperty
Field Value
BorderRightColorProperty
Declaration
public static RadProperty BorderRightColorProperty
Field Value
BorderRightShadowColorProperty
Declaration
public static RadProperty BorderRightShadowColorProperty
Field Value
BorderRightWidthProperty
Declaration
public static RadProperty BorderRightWidthProperty
Field Value
BorderTopColorProperty
Declaration
public static RadProperty BorderTopColorProperty
Field Value
BorderTopShadowColorProperty
Declaration
public static RadProperty BorderTopShadowColorProperty
Field Value
BorderTopWidthProperty
Declaration
public static RadProperty BorderTopWidthProperty
Field Value
CustomFontSizeProperty
Declaration
public static RadProperty CustomFontSizeProperty
Field Value
CustomFontStyleProperty
Declaration
public static RadProperty CustomFontStyleProperty
Field Value
GradientAngleProperty
Declaration
public static RadProperty GradientAngleProperty
Field Value
GradientPercentage2Property
Declaration
public static RadProperty GradientPercentage2Property
Field Value
GradientPercentageProperty
Declaration
public static RadProperty GradientPercentageProperty
Field Value
GradientStyleProperty
Declaration
public static RadProperty GradientStyleProperty
Field Value
NumberOfColorsProperty
Declaration
public static RadProperty NumberOfColorsProperty
Field Value
SmoothingModeProperty
Declaration
public static RadProperty SmoothingModeProperty
Field Value
Properties
BackColor
Gets or sets the back color.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BackColor { get; set; }
Property Value
The color of the back.
Implements
BackColor2
Gets or sets the back color2.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BackColor2 { get; set; }
Property Value
The back color2.
Implements
BackColor3
Gets or sets the back color3.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BackColor3 { get; set; }
Property Value
The back color3.
Implements
BackColor4
Gets or sets the back color4.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BackColor4 { get; set; }
Property Value
The back color4.
Implements
BackgroundShape
Gets or sets the RadImageShape that describes the background of the element.
Declaration
[Browsable(false)]
[VsbBrowsable(true)]
public RadImageShape BackgroundShape { get; set; }
Property Value
BorderBottomColor
Gets and sets the bottom border color. This applies only if FourBorders is chosen for BoxStyle property, and affects only the bottom border.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderBottomColor { get; set; }
Property Value
BorderBottomShadowColor
Gets and sets the bottom shadow color. This option applies only if fourBorders is chosen, and affects only the bottom border.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderBottomShadowColor { get; set; }
Property Value
BorderBottomWidth
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.
BorderBoxStyle
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.
Declaration
public BorderBoxStyle BorderBoxStyle { get; set; }
Property Value
BorderColor
Gets or sets the color of the border.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderColor { get; set; }
Property Value
The color of the border.
BorderColor2
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.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderColor2 { get; set; }
Property Value
BorderColor3
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.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderColor3 { get; set; }
Property Value
BorderColor4
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.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderColor4 { get; set; }
Property Value
BorderCornerRadius
Gets or sets the border corner radius.
Declaration
[Browsable(true)]
public int BorderCornerRadius { get; set; }
Property Value
The border corner radius.
BorderDashPattern
Specifies the style of dashed lines drawn with a border.
Declaration
public float[] BorderDashPattern { get; set; }
Property Value
float[]
Implements
BorderDashStyle
Specifies the style of dashed lines drawn with a border.
Declaration
public DashStyle BorderDashStyle { get; set; }
Property Value
Implements
BorderDrawMode
Declaration
public BorderDrawModes BorderDrawMode { get; set; }
Property Value
Implements
BorderGradientAngle
Gets or sets gradient angle for linear gradient measured in degrees.
BorderGradientStyle
Gets or sets gradient style. Possible styles are solid, linear, radial, glass, office glass, gel, and vista.
Declaration
public GradientStyles BorderGradientStyle { get; set; }
Property Value
BorderInnerColor
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.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderInnerColor { get; set; }
Property Value
BorderInnerColor2
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.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderInnerColor2 { get; set; }
Property Value
BorderInnerColor3
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.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderInnerColor3 { get; set; }
Property Value
BorderInnerColor4
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.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderInnerColor4 { get; set; }
Property Value
BorderLeftColor
Gets and sets the left border color. This applies only if FourBorders is chosen for BoxStyle property, and affects only the left border.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderLeftColor { get; set; }
Property Value
BorderLeftShadowColor
Gets and sets the left shadow color. This option applies only if fourBorders is chosen, and affects only the left border.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderLeftShadowColor { get; set; }
Property Value
BorderLeftWidth
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.
BorderRightColor
Gets and sets the right border color. This applies only if FourBorders is chosen for BoxStyle property, and affects only the right border.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderRightColor { get; set; }
Property Value
BorderRightShadowColor
Gets and sets the right shadow color. This option applies only if fourBorders is chosen, and affects only the right border.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderRightShadowColor { get; set; }
Property Value
BorderRightWidth
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.
BorderTopColor
Gets and sets the top border color. This applies only if FourBorders is chosen for BoxStyle property, and affects only the top border.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderTopColor { get; set; }
Property Value
BorderTopShadowColor
Gets and sets the top shadow color. This option applies only if fourBorders is chosen, and affects only the top border.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BorderTopShadowColor { get; set; }
Property Value
BorderTopWidth
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.
BorderWidth
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.
Children
Declaration
[Browsable(false)]
public ChartElementCollection Children { get; }
Property Value
ChildrenHierarchy
Gets the children hierarchy.
Declaration
[Browsable(false)]
public IEnumerable<RadObject> ChildrenHierarchy { get; }
Property Value
IEnumerable<RadObject>
The children hierarchy.
Implements
Class
Gets the class.
Declaration
[Browsable(false)]
public string Class { get; }
Property Value
The class.
Implements
DpiScaleFactor
Gets or sets the dpi scale factor.
Declaration
public SizeF DpiScaleFactor { get; protected set; }
Property Value
The dpi scale factor.
FallbackToDefaultTheme
Gets whether to fallback to default theme.
Declaration
[Browsable(false)]
public virtual bool FallbackToDefaultTheme { get; }
Property Value
The fallback to default theme.
Implements
Font
Gets or sets the font.
ForeColor
Gets or sets the fore color.
Declaration
[TypeConverter(typeof(RadColorEditorConverter))]
public Color ForeColor { get; set; }
Property Value
The color of the fore.
GradientAngle
Gets or sets the gradient angle.
Declaration
public float GradientAngle { get; set; }
Property Value
The gradient angle.
Implements
GradientPercentage
Gets or sets the GradientPercentage.
Declaration
public float GradientPercentage { get; set; }
Property Value
Implements
GradientPercentage2
Gets or sets the GradientPercentage2.
Declaration
public float GradientPercentage2 { get; set; }
Property Value
Implements
GradientStyle
Gets or sets the gradient style.
Declaration
public GradientStyles GradientStyle { get; set; }
Property Value
Implements
IsAttached
Gets if it is attached.
Declaration
[Browsable(false)]
public bool IsAttached { get; }
Property Value
The is attached.
IsMouseDown
Gets if the mouse is down.
Declaration
[Browsable(false)]
public bool IsMouseDown { get; }
Property Value
The is mouse down.
IsMouseOver
Gets if the mouse is over.
Declaration
[Browsable(false)]
public bool IsMouseOver { get; }
Property Value
The is mouse over.
IsVisible
Gets or sets whether the element is visible.
Declaration
public virtual bool IsVisible { get; set; }
Property Value
Implements
Level
Gets the level.
Declaration
[Browsable(false)]
public int Level { get; }
Property Value
The level.
NumberOfColors
Gets or sets the number of colors.
Padding
Gets or sets the padding of the element.
Declaration
public Padding Padding { get; set; }
Property Value
The padding.
Parent
Declaration
[Browsable(false)]
public virtual RadObject Parent { get; set; }
Property Value
Shape
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.
Declaration
[TypeConverter(typeof(ElementShapeConverter))]
public ElementShape Shape { get; set; }
Property Value
Remarks
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.
Size
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.
Declaration
[Browsable(true)]
public virtual Size Size { get; set; }
Property Value
Implements
SmoothingMode
Gets or sets the SmoothingMode of the element.
Declaration
public SmoothingMode SmoothingMode { get; set; }
Property Value
Implements
StateManager
Gets or sets the state manager.
Declaration
[Browsable(false)]
public virtual ItemStateManagerBase StateManager { get; set; }
Property Value
ItemStateManagerBase
The state manager.
Implements
Style
Gets or sets the style.
Declaration
[Browsable(false)]
public virtual StyleSheet Style { get; set; }
Property Value
The style.
Implements
ThemeRole
Gets or sets the theme role.
Declaration
[Browsable(false)]
public virtual string ThemeRole { get; set; }
Property Value
The theme role.
Implements
View
Gets the view.
Declaration
[Browsable(false)]
public ChartView View { get; }
Property Value
The view.
VisualState
Gets or sets the state of the visual.
Declaration
[Browsable(false)]
public virtual string VisualState { get; set; }
Property Value
The state of the visual.
Implements
Methods
AddStylePropertySetting(IPropertySetting)
Registers a style setting for this instance.
Declaration
protected override ValueUpdateResult AddStylePropertySetting(IPropertySetting setting)
Parameters
setting
Returns
Overrides
ApplyStyleByIndex(PropertySettingGroup, int)
Applies the style by the index.
Declaration
protected virtual void ApplyStyleByIndex(PropertySettingGroup group, int index)
Parameters
group
The group.
index
The index.
ApplyStyleSettingsCore(PropertySettingGroup)
Applies the style settings.
Declaration
protected virtual void ApplyStyleSettingsCore(PropertySettingGroup group)
Parameters
group
The group.
Attach(UIChartElement)
Attaches the specified parent.
Declaration
public void Attach(UIChartElement parent)
Parameters
parent
The parent.
BuildVisualState()
Builds the visual state.
Declaration
protected virtual void BuildVisualState()
DpiScaleChanged(SizeF)
Called when DPI scale is changed.
Declaration
protected virtual void DpiScaleChanged(SizeF scaleFactor)
Parameters
scaleFactor
The scale factor.
GetCurrentShape()
Gets the current shape.
GetScaledFont(float)
Gets the scaled font.
GetThemeEffectiveType()
Gets the type of the theme effective.
GetValue(RadProperty)
Retrieves the current value for the specified property.
Declaration
public override object GetValue(RadProperty property)
Parameters
property
Returns
Overrides
Invalidate()
Invalidates the UIChartElement.
Declaration
public virtual void Invalidate()
MeasureContentOverride(ChartNode, object)
Measures the content override.
OnAttached(UIChartElement)
Called when [attached].
Declaration
protected virtual void OnAttached(UIChartElement parent)
Parameters
parent
The parent.
OnDettached()
Called when [dettached].
Declaration
protected virtual void OnDettached()
OnPropertyChanged(RadPropertyChangedEventArgs)
Raises the RadPropertyChanged event and the standard .NET PropertyChanged event to notify subscribers of property value changes.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
The RadPropertyChangedEventArgs containing information about the property change.
Overrides