New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class SystemSkinManager

Inheritance: objectSystemSkinManager

Constructors

C#
public SystemSkinManager()

Fields

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

C#
public static readonly VisualStyleElement DefaultElement

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

C#
public static readonly VisualStyleElement EmptyElement

Properties

Gets the currently attached element.

C#
public VisualStyleElement CurrentElement { get; }

Gets the only instance of this manager.

C#
public static SystemSkinManager Instance { get; }
C#
public static bool IsVistaOrLater { get; }
Property Value:

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

C#
public VisualStyleRenderer Renderer { get; }

Determines whether system skins will be applied on RadControls

C#
public bool UseSystemSkin { get; set; }

Methods

C#
public Size GetPartPreferredSize(Graphics g, Rectangle bounds, ThemeSizeType type)
Parameters:gGraphicsboundsRectangletypeThemeSizeTypeReturns:

Size

Gets the Color defined for the current element.

C#
public Color GetThemeColor(ColorProperty color)
Parameters:colorColorPropertyReturns:

Color

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

C#
public void NotifyChange()

Paints the current element (previously specified by the SetCurrentElement method) on the provided graphics surface, within the desired bounds.

C#
public void PaintCurrentElement(Graphics g, Rectangle bounds)
Parameters:gGraphicsboundsRectangle

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

C#
public bool SetCurrentElement(VisualStyleElement element)
Parameters:elementVisualStyleElementReturns:

bool

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