Class SystemSkinManager
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class SystemSkinManager
Constructors
SystemSkinManager()
Declaration
public SystemSkinManager()
Fields
DefaultElement
Used to instruct the system skin painting mechanism that a custom painting will be performed in the PaintElementSkin method.
Declaration
public static readonly VisualStyleElement DefaultElement
Field Value
|
System.Windows.Forms.VisualStyles.VisualStyleElement
|
EmptyElement
Used internally by the framework to determine whether we just want to skip TPF's drawing.
Declaration
public static readonly VisualStyleElement EmptyElement
Field Value
|
System.Windows.Forms.VisualStyles.VisualStyleElement
|
Properties
CurrentElement
Gets the currently attached element.
Declaration
public VisualStyleElement CurrentElement { get; }
Property Value
|
System.Windows.Forms.VisualStyles.VisualStyleElement
|
Instance
Gets the only instance of this manager.
Declaration
public static SystemSkinManager Instance { get; }
Property Value
|
SystemSkinManager
|
IsVistaOrLater
Declaration
public static bool IsVistaOrLater { get; }
Property Value
|
System.Boolean
Returns true on Windows Vista or newer operating systems; otherwise, false. |
Renderer
Declaration
public VisualStyleRenderer Renderer { get; }
Property Value
|
System.Windows.Forms.VisualStyles.VisualStyleRenderer
|
UseSystemSkin
Determines whether system skins will be applied on RadControls
Declaration
public bool UseSystemSkin { get; set; }
Property Value
|
System.Boolean
|
Methods
GetPartPreferredSize(Graphics, Rectangle, ThemeSizeType)
Declaration
public Size GetPartPreferredSize(Graphics g, Rectangle bounds, ThemeSizeType type)
Parameters
|
System.Drawing.Graphics
g
|
|
System.Drawing.Rectangle
bounds
|
|
System.Windows.Forms.VisualStyles.ThemeSizeType
type
|
Returns
|
System.Drawing.Size
|
GetThemeColor(ColorProperty)
Gets the Color defined for the current element.
Declaration
public Color GetThemeColor(ColorProperty color)
Parameters
|
System.Windows.Forms.VisualStyles.ColorProperty
color
|
Returns
|
System.Drawing.Color
|
NotifyChange()
Invalidates all opened forms upon a user-triggered change in this class.
Declaration
public void NotifyChange()
PaintCurrentElement(Graphics, Rectangle)
Paints the current element (previously specified by the SetCurrentElement method) on the provided graphics surface, within the desired bounds.
Declaration
public void PaintCurrentElement(Graphics g, Rectangle bounds)
Parameters
|
System.Drawing.Graphics
g
|
|
System.Drawing.Rectangle
bounds
|
SetCurrentElement(VisualStyleElement)
Sets the specified element as the "Current" for painting.
Declaration
public bool SetCurrentElement(VisualStyleElement element)
Parameters
|
System.Windows.Forms.VisualStyles.VisualStyleElement
element
|
Returns
|
System.Boolean
True if the element may be painted (there is a theme part defined for it), false otherwise. |