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

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class StyleRegistration

Inheritance: objectStyleRegistration

Constructors

Initializes a new instance of the StyleRegistration class.

C#
public StyleRegistration()

Initializes a new instance of the StyleRegistration class.

C#
public StyleRegistration(string registrationType, string elementType, string controlType, string elementName, string controlName)
Parameters:registrationTypestring

The registration type.

elementTypestring

The full element type.

controlTypestring

The full control type.

elementNamestring

The element name.

controlNamestring

The control name.

Initializes a new instance of the StyleRegistration class by creating an ElementTypeDefault registration.

C#
public StyleRegistration(string elementType)
Parameters:elementTypestring

The full element type.

Initializes a new instance of the StyleRegistration class by using an existing StyleRegistration instance.

C#
public StyleRegistration(StyleRegistration registration)
Parameters:registrationStyleRegistration

The StyleRegistration to be used as a source.

Properties

Gets or sets the control name.

C#
public string ControlName { get; set; }

Gets or sets the control type.

C#
public string ControlType { get; set; }

Gets or sets the element name.

C#
public string ElementName { get; set; }

Gets or sets the element type.

C#
public string ElementType { get; set; }

Gets or sets the registration type.

C#
public string RegistrationType { get; set; }

Methods

Determines whether the style registration is valid for the specified control.

C#
public bool IsCompatible(Control control)
Parameters:controlControl

The control to check.

Returns:

bool

true if the style registration is compatible.

Determines whether the style registration is valid for the specified stylable node.

C#
public bool IsCompatible(IStylableNode item)
Parameters:itemIStylableNode

The stylable node to check.

Returns:

bool

true if the style registration is compatible.

Determines whether the style registration is valid for the specified control type.

C#
public bool IsCompatible(string controlType)
Parameters:controlTypestring

The control type to check.

Returns:

bool

true if the style registration is compatible.

Determines whether the style registration is compatible with existing style registration.

C#
public bool IsCompatible(StyleRegistration registration)
Parameters:registrationStyleRegistration

The style registration to check.

Returns:

bool

true if the style registration is compatible.