Class
SystemSkinManager

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class SystemSkinManager

Inheritance: objectSystemSkinManager

Constructors

SystemSkinManager()

Declaration

cs-api-definition
public SystemSkinManager()

Fields

DefaultElement

Used to instruct the system skin painting mechanism that a custom painting will be performed in the PaintElementSkin method.

Declaration

cs-api-definition
public static readonly VisualStyleElement DefaultElement

Field Value

VisualStyleElement

EmptyElement

Used internally by the framework to determine whether we just want to skip TPF's drawing.

Declaration

cs-api-definition
public static readonly VisualStyleElement EmptyElement

Field Value

VisualStyleElement

Properties

CurrentElement

Gets the currently attached element.

Declaration

cs-api-definition
public VisualStyleElement CurrentElement { get; }

Property Value

VisualStyleElement

Instance

Gets the only instance of this manager.

Declaration

cs-api-definition
public static SystemSkinManager Instance { get; }

Property Value

SystemSkinManager

IsVistaOrLater

Declaration

cs-api-definition
public static bool IsVistaOrLater { get; }

Property Value

bool

Returns true on Windows Vista or newer operating systems; otherwise, false.

Renderer

Declaration

cs-api-definition
public VisualStyleRenderer Renderer { get; }

Property Value

VisualStyleRenderer

UseSystemSkin

Determines whether system skins will be applied on RadControls

Declaration

cs-api-definition
public bool UseSystemSkin { get; set; }

Property Value

bool

Methods

GetPartPreferredSize(Graphics, Rectangle, ThemeSizeType)

Declaration

cs-api-definition
public Size GetPartPreferredSize(Graphics g, Rectangle bounds, ThemeSizeType type)

Parameters

g

Graphics

bounds

Rectangle

type

ThemeSizeType

Returns

Size

GetThemeColor(ColorProperty)

Gets the Color defined for the current element.

Declaration

cs-api-definition
public Color GetThemeColor(ColorProperty color)

Parameters

color

ColorProperty

Returns

Color

NotifyChange()

Invalidates all opened forms upon a user-triggered change in this class.

Declaration

cs-api-definition
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

cs-api-definition
public void PaintCurrentElement(Graphics g, Rectangle bounds)

Parameters

g

Graphics

bounds

Rectangle

SetCurrentElement(VisualStyleElement)

Sets the specified element as the "Current" for painting.

Declaration

cs-api-definition
public bool SetCurrentElement(VisualStyleElement element)

Parameters

element

VisualStyleElement

Returns

bool

True if the element may be painted (there is a theme part defined for it), false otherwise.