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

Exposes methods and properties required for a general selector. Selectors in telerik presentation framework are like CSS selectors.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public interface IElementSelector

Derived Classes: ClassSelectorHierarchicalSelectorNameSelectorSelectorBaseTypeSelector

Properties

Gets or sets the child selector.

C#
IElementSelector ChildSelector { get; set; }

Gets a value indicating whether a condition has been applied.

C#
bool HasApplyCondition { get; }

Selector Key

C#
int Key { get; }

Methods

Method supports obsolete theming infrastructure. If HasApplyCondition returns true, this method should add the RadProperties that the selector depends, so style manager can refresh affected element by the selector selector, when property changes

C#
void AddConditionPropertiesToList(List<RadProperty> list)
Parameters:listList<RadProperty>

Applies the property settings to the given element. Method supports obsolete theming infrastructure.

C#
void Apply(RadObject element, List<IPropertySetting> propertySettings)
Parameters:elementRadObjectpropertySettingsList<IPropertySetting>

Gets value indicating whether the selector applies to the specified element

C#
bool CanSelect(RadObject targetElement)
Parameters:targetElementRadObjectReturns:

bool

Gets value indicating whether the selector applies to the specified element, without checking conditions that apply to properties of the element.

C#
bool CanSelectIgnoringConditions(RadObject targetElement)
Parameters:targetElementRadObjectReturns:

bool

Gets value indicating whether the selector Equals to the specified selector

C#
bool Equals(IElementSelector selector)
Parameters:selectorIElementSelectorReturns:

bool

Method supports obsolete theming infrastructure

C#
PropertyChangeBehaviorCollection GetBehaviors(PropertySettingGroup group)
Parameters:groupPropertySettingGroupReturns:

PropertyChangeBehaviorCollection

Retrieves an array of selected elements of the element given as an argument.

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

LinkedList<RadObject>