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

Represents a class selector. Class selectors are used to apply the same customization to all elements that belong to the same class. This behavior is very similar to that of the CSS class selectors.

Definition

Constructors

Initializes a new instance of the class selector class.

C#
public ClassSelector()
C#
public ClassSelector(string className, Condition condition)
Parameters:classNamestringconditionCondition

Initializes a new instance of the class selector class using string for the class name.

C#
public ClassSelector(string elementClass)
Parameters:elementClassstring

Properties

C#
protected override bool CanUseCache { get; }

Overrides: HierarchicalSelector.CanUseCache

Gets or sets a value indicating the class name.

C#
public string ElementClass { get; set; }

Methods

C#
protected override bool CanSelectOverride(RadObject element)
Parameters:elementRadObjectReturns:

bool

Overrides: SelectorBase.CanSelectOverride(RadObject)

Gets value indicating whether the selector Equals to the specified selector

C#
public override bool Equals(IElementSelector elementSelector)
Parameters:elementSelectorIElementSelectorReturns:

bool

Overrides: SelectorBase.Equals(IElementSelector)

C#
protected override LinkedList<RadObject> FindElements(IDictionary ChildrenHierarchyByElement)
Parameters:ChildrenHierarchyByElementIDictionaryReturns:

LinkedList<RadObject>

Overrides: HierarchicalSelector.FindElements(IDictionary)

C#
protected override int GetKey()
Returns:

int

Overrides: SelectorBase.GetKey()

Retrieves the selected elements of the given element.

C#
public override LinkedList<RadObject> GetSelectedElements(RadObject element)
Parameters:elementRadObjectReturns:

LinkedList<RadObject>

Overrides: HierarchicalSelector.GetSelectedElements(RadObject)

C#
public static int GetSelectorKey(string elementClass)
Parameters:elementClassstringReturns:

int

C#
public override string ToString()
Returns:

string

Overrides: object.ToString()