Class
StyleSelector

An attribute selector based on the style name property.

Definition

Constructors

StyleSelector()

Initializes a new StyleSelector.

Declaration

cs-api-definition
public StyleSelector()

StyleSelector(Type, string)

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

Declaration

cs-api-definition
public StyleSelector(Type type, string name)

Parameters

type

Type

The Type of items to match.

name

string

A string value specifying the style name to match.

StyleSelector(string)

Initializes a new StyleSelector with the specified style name.

Declaration

cs-api-definition
public StyleSelector(string name)

Parameters

name

string

A string value specifying the style name to match.

Properties

StyleName

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

Declaration

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

Property Value

string

A string value representing the style name to match.

Methods

ToString()

Returns a human-readable representation of this StyleSelector.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A human-readable representation of this StyleSelector.

Overrides TypeSelector.ToString()