Class VisualElement
Extends RadElement and adds visual properties common to all elements.
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class VisualElement : RadElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode
Constructors
VisualElement()
Declaration
public VisualElement()
Fields
BackColorProperty
CustomFontProperty
CustomFontSizeProperty
CustomFontStyleProperty
DefaultSizeProperty
FontProperty
ForeColorProperty
OpacityProperty
SmoothingModeProperty
Properties
BackColor
Gets or sets the backcolor. Color type represents an ARGB color.
Declaration
[RadPropertyDefaultValue("BackColor", typeof(VisualElement))]
public virtual Color BackColor { get; set; }
Property Value
System.
|
CustomFont
Declaration
[VsbBrowsable(true)]
[RadPropertyDefaultValue("CustomFont", typeof(VisualElement))]
public virtual string CustomFont { get; set; }
Property Value
System.
|
CustomFontSize
Declaration
[VsbBrowsable(true)]
[RadPropertyDefaultValue("CustomFontSize", typeof(VisualElement))]
public virtual float CustomFontSize { get; set; }
Property Value
System.
|
CustomFontStyle
Declaration
[VsbBrowsable(true)]
[RadPropertyDefaultValue("CustomFontStyle", typeof(VisualElement))]
public virtual FontStyle CustomFontStyle { get; set; }
Property Value
System.
|
DefaultSize
Gets or sets the DefaultSize.
Declaration
[RadPropertyDefaultValue("DefaultSize", typeof(VisualElement))]
public virtual Size DefaultSize { get; set; }
Property Value
System.
|
Font
Gets or sets the font. Font type defines a particular format for text, including font face, size, and style attributes.
Declaration
[RadPropertyDefaultValue("Font", typeof(VisualElement))]
public virtual Font Font { get; set; }
Property Value
System.
|
ForeColor
Gets or sets the forecolor. Color type represents an ARGB color.
Declaration
[RadPropertyDefaultValue("ForeColor", typeof(VisualElement))]
public virtual Color ForeColor { get; set; }
Property Value
System.
|
Opacity
Gets or sets the opacity of an element. Value 0.0f indicates that the element is completely transparent, 1.0f means the element is not transparent (the default value).
Declaration
[RadPropertyDefaultValue("Opacity", typeof(VisualElement))]
public virtual double Opacity { get; set; }
Property Value
System.
|
SmoothingMode
Gets or sets the smoothing mode of an element. Smoothing mode enumeration defines possible values.
Declaration
[RadPropertyDefaultValue("SmoothingMode", typeof(VisualElement))]
public virtual SmoothingMode SmoothingMode { get; set; }
Property Value
System.
|
Methods
GetScaledFont(Single)
Declaration
public virtual Font GetScaledFont(float scale)
Parameters
System.
|
Returns
System.
|
GetScaledFont(Single, Font)
Declaration
protected virtual Font GetScaledFont(float scale, Font fontToScale)
Parameters
System.
|
System.
|
Returns
System.
|
OnFontChanged(EventArgs)
Declaration
protected virtual void OnFontChanged(EventArgs e)
Parameters
System.
|
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
Overrides
OnPropertyChanging(RadPropertyChangingEventArgs)
Declaration
protected override void OnPropertyChanging(RadPropertyChangingEventArgs args)
Parameters
Overrides
PaintChildren(IGraphics, Rectangle, Single, SizeF, Boolean)
Declaration
protected override void PaintChildren(IGraphics graphics, Rectangle clipRectange, float angle, SizeF scale, bool useRelativeTransformation)
Parameters
IGraphics
graphics
|
System.
|
System.
|
System.
|
System.
|
Overrides
PaintElement(IGraphics, Single, SizeF)
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.
|
System.
|
Overrides
PostPaintElement(IGraphics)
Declaration
protected override void PostPaintElement(IGraphics graphics)
Parameters
IGraphics
graphics
|
Overrides
PrePaintElement(IGraphics)
Declaration
protected override void PrePaintElement(IGraphics graphics)
Parameters
IGraphics
graphics
|
Overrides
Events
FontChanged
Fires when the font is changed.
Declaration
public event EventHandler FontChanged
Event Type
System.
|