Class
StyleRepository

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class StyleRepository

Inheritance: objectStyleRepository

Constructors

StyleRepository()

Initializes a new instance of the StyleRepository class.

Declaration

cs-api-definition
public StyleRepository()

StyleRepository(StyleRepository)

Initializes a new instance of the StyleRepository class by using an existigng instance.

Declaration

cs-api-definition
public StyleRepository(StyleRepository repository)

Parameters

repository

StyleRepository

The StyleRepository to be used as a source

StyleRepository(string)

Initializes a new instance of the StyleRepository class and specifies the repository key.

Declaration

cs-api-definition
public StyleRepository(string key)

Parameters

key

string

The repository key.

StyleRepository(string, string, string)

Initializes a new instance of the StyleRepository class and specifies its main properties.

Declaration

cs-api-definition
public StyleRepository(string itemType, string name, string key)

Parameters

itemType

string

The style repository type. It can be: Border, Gradient, Image and Layout

name

string

The repository name.

key

string

The repository key.

Properties

ItemType

Gets or sets the repository type.

Declaration

cs-api-definition
public string ItemType { get; set; }

Property Value

string

Key

Gets or sets the repository key.

Declaration

cs-api-definition
public string Key { get; set; }

Property Value

string

Name

Gets or sets the repository name.

Declaration

cs-api-definition
public string Name { get; set; }

Property Value

string

Settings

Gets a collection containing the repository settings.

Declaration

cs-api-definition
public List<PropertySetting> Settings { get; }

Property Value

List<PropertySetting>

Methods

FindSetting(RadProperty)

Searches for a specific property setting in the repository.

Declaration

cs-api-definition
public PropertySetting FindSetting(RadProperty property)

Parameters

property

RadProperty

The property to search for.

Returns

PropertySetting

An instance of PropertySetting

FindSetting(string)

Searches for a specific property setting in the repository.

Declaration

cs-api-definition
public PropertySetting FindSetting(string name)

Parameters

name

string

The property name to search for.

Returns

PropertySetting

An instance of PropertySetting

Initialize()

Initializes the repository and maps its properties.

Declaration

cs-api-definition
public void Initialize()