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

Represents a base class for the HierarchicalSelector class. Selectors in telerik presentation framework are very similar to CSS selectors.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public abstract class SelectorBase : IElementSelector

Inheritance: objectSelectorBase

Derived Classes: HierarchicalSelector

Implements: IElementSelector

Constructors

C#
protected SelectorBase()

Fields

C#
public SelectorBase ExcludeSelector

Properties

Gets or sets a value indicating whether auto-un-apply is on or off.

C#
public bool AutoUnapply { get; set; }

Gets or sets the child selector.

C#
public IElementSelector ChildSelector { get; set; }

Implements: IElementSelector.ChildSelector

Gets or sets the Condition upon which to apply the customization.

C#
public Condition Condition { get; set; }
C#
public bool DisableStyle { get; set; }

Gets a value indicating whether the an apply condition is set.

C#
public virtual bool HasApplyCondition { get; }

Implements: IElementSelector.HasApplyCondition

Gets or sets a value indicating whether the current selector is the active one in style builder

C#
public bool IsActiveSelectorInStyleBuilder { get; set; }

Gets or sets the condition upon which to un-apply the customization.

C#
public Condition UnapplyCondition { get; set; }

Methods

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

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

Implements: IElementSelector.Apply(RadObject, List<IPropertySetting>)

Gets value indicating whether the selector applies to the specified element

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

bool

Implements: IElementSelector.CanSelect(RadObject)

C#
protected virtual bool CanSelectCore(RadObject onElement)
Parameters:onElementRadObjectReturns:

bool

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

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

bool

Implements: IElementSelector.CanSelectIgnoringConditions(RadObject)

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

bool

Gets value indicating whether the selector Equals to the specified selector

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

bool

Implements: IElementSelector.Equals(IElementSelector)

Method supports obsolete theming infrastructure

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

PropertyChangeBehaviorCollection

Implements: IElementSelector.GetBehaviors(PropertySettingGroup)

C#
protected abstract int GetKey()
Returns:

int

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

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

LinkedList<RadObject>

Implements: IElementSelector.GetSelectedElements(RadObject)

Retrieves a value indicating whether value is set for the element.

C#
public bool IsValueApplied(RadObject element)
Parameters:elementRadObjectReturns:

bool

C#
public bool IsValueUnapplied(RadObject element)
Parameters:elementRadObjectReturns:

bool

Retrieves a value indicating whether the customization should be un-applied to the given element..

C#
public virtual bool ShouldUnapply(RadObject onElement)
Parameters:onElementRadObjectReturns:

bool