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.Drawing.Color
|
CustomFont
Declaration
[VsbBrowsable(true)]
[RadPropertyDefaultValue("CustomFont", typeof(VisualElement))]
public virtual string CustomFont { get; set; }
Property Value
System.String
|
CustomFontSize
Declaration
[VsbBrowsable(true)]
[RadPropertyDefaultValue("CustomFontSize", typeof(VisualElement))]
public virtual float CustomFontSize { get; set; }
Property Value
System.Single
|
CustomFontStyle
Declaration
[VsbBrowsable(true)]
[RadPropertyDefaultValue("CustomFontStyle", typeof(VisualElement))]
public virtual FontStyle CustomFontStyle { get; set; }
Property Value
System.Drawing.FontStyle
|
DefaultSize
Gets or sets the DefaultSize.
Declaration
[RadPropertyDefaultValue("DefaultSize", typeof(VisualElement))]
public virtual Size DefaultSize { get; set; }
Property Value
System.Drawing.Size
|
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.Drawing.Font
|
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.Drawing.Color
|
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.Double
|
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.Drawing.Drawing2D.SmoothingMode
|
Methods
GetScaledFont(Single)
Declaration
public virtual Font GetScaledFont(float scale)
Parameters
System.Single
scale
|
Returns
System.Drawing.Font
|
GetScaledFont(Single, Font)
Declaration
protected virtual Font GetScaledFont(float scale, Font fontToScale)
Parameters
System.Single
scale
|
System.Drawing.Font
fontToScale
|
Returns
System.Drawing.Font
|
OnFontChanged(EventArgs)
Declaration
protected virtual void OnFontChanged(EventArgs e)
Parameters
System.EventArgs
e
|
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
OnPropertyChanging(RadPropertyChangingEventArgs)
Declaration
protected override void OnPropertyChanging(RadPropertyChangingEventArgs args)
Parameters
RadPropertyChangingEventArgs
args
|
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.Drawing.Rectangle
clipRectange
|
System.Single
angle
|
System.Drawing.SizeF
scale
|
System.Boolean
useRelativeTransformation
|
Overrides
PaintElement(IGraphics, Single, SizeF)
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.Single
angle
|
System.Drawing.SizeF
scale
|
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.EventHandler
|