New to Telerik ReportingStart a free 30-day trial

An attribute selector based on the style name property.

Definition

Constructors

Initializes a new StyleSelector.

C#
public StyleSelector()

Initializes a new StyleSelector with the specified style name.

C#
public StyleSelector(string name)
Parameters:namestring

A string value specifying the style name to match.

Initializes a new StyleSelector with the specified style name, that matches items of the specified Type

C#
public StyleSelector(Type type, string name)
Parameters:typeType

The Type of items to match.

namestring

A string value specifying the style name to match.

Properties

StyleName

string

Gets or sets the name of the style that this selector matches.

C#
public string StyleName { get; set; }
Property Value:

A string value representing the style name to match.

Methods

Returns a human-readable representation of this StyleSelector.

C#
public override string ToString()
Returns:

string

A human-readable representation of this StyleSelector.

Overrides: TypeSelector.ToString()