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

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class StyleRepository

Inheritance: objectStyleRepository

Constructors

Initializes a new instance of the StyleRepository class.

C#
public StyleRepository()

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

C#
public StyleRepository(string itemType, string name, string key)
Parameters:itemTypestring

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

namestring

The repository name.

keystring

The repository key.

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

C#
public StyleRepository(string key)
Parameters:keystring

The repository key.

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

C#
public StyleRepository(StyleRepository repository)
Parameters:repositoryStyleRepository

The StyleRepository to be used as a source

Properties

Gets or sets the repository type.

C#
public string ItemType { get; set; }

Gets or sets the repository key.

C#
public string Key { get; set; }

Gets or sets the repository name.

C#
public string Name { get; set; }

Gets a collection containing the repository settings.

C#
public List<PropertySetting> Settings { get; }

Methods

Searches for a specific property setting in the repository.

C#
public PropertySetting FindSetting(RadProperty property)
Parameters:propertyRadProperty

The property to search for.

Returns:

PropertySetting

An instance of PropertySetting

Searches for a specific property setting in the repository.

C#
public PropertySetting FindSetting(string name)
Parameters:namestring

The property name to search for.

Returns:

PropertySetting

An instance of PropertySetting

Initializes the repository and maps its properties.

C#
public void Initialize()