Class
SelectorBase

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:

cs-api-definition
public abstract class SelectorBase : IElementSelector

Inheritance: objectSelectorBase

Derived Classes: HierarchicalSelector

Implements: IElementSelector

Constructors

SelectorBase()

Declaration

cs-api-definition
protected SelectorBase()

Fields

ExcludeSelector

Declaration

cs-api-definition
public SelectorBase ExcludeSelector

Field Value

SelectorBase

Properties

AutoUnapply

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

Declaration

cs-api-definition
public bool AutoUnapply { get; set; }

Property Value

bool

ChildSelector

Gets or sets the child selector.

Declaration

cs-api-definition
public IElementSelector ChildSelector { get; set; }

Property Value

IElementSelector

Implements IElementSelector.ChildSelector

Condition

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

Declaration

cs-api-definition
public Condition Condition { get; set; }

Property Value

Condition

DisableStyle

Declaration

cs-api-definition
public bool DisableStyle { get; set; }

Property Value

bool

HasApplyCondition

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

Declaration

cs-api-definition
public virtual bool HasApplyCondition { get; }

Property Value

bool

Implements IElementSelector.HasApplyCondition

IsActiveSelectorInStyleBuilder

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

Declaration

cs-api-definition
public bool IsActiveSelectorInStyleBuilder { get; set; }

Property Value

bool

UnapplyCondition

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

Declaration

cs-api-definition
public Condition UnapplyCondition { get; set; }

Property Value

Condition

Methods

Apply(RadObject, List<IPropertySetting>)

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

Declaration

cs-api-definition
public void Apply(RadObject element, List<IPropertySetting> propertySettings)

Parameters

element

RadObject

propertySettings

List<IPropertySetting>

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

CanSelect(RadObject)

Gets value indicating whether the selector applies to the specified element

Declaration

cs-api-definition
public virtual bool CanSelect(RadObject targetElement)

Parameters

targetElement

RadObject

Returns

bool

Implements IElementSelector.CanSelect(RadObject)

CanSelectCore(RadObject)

Declaration

cs-api-definition
protected virtual bool CanSelectCore(RadObject onElement)

Parameters

onElement

RadObject

Returns

bool

CanSelectIgnoringConditions(RadObject)

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

Declaration

cs-api-definition
public bool CanSelectIgnoringConditions(RadObject targetElement)

Parameters

targetElement

RadObject

Returns

bool

Implements IElementSelector.CanSelectIgnoringConditions(RadObject)

CanSelectOverride(RadObject)

Declaration

cs-api-definition
protected virtual bool CanSelectOverride(RadObject element)

Parameters

element

RadObject

Returns

bool

Equals(IElementSelector)

Gets value indicating whether the selector Equals to the specified selector

Declaration

cs-api-definition
public abstract bool Equals(IElementSelector elementSelector)

Parameters

elementSelector

IElementSelector

Returns

bool

Implements IElementSelector.Equals(IElementSelector)

GetBehaviors(PropertySettingGroup)

Method supports obsolete theming infrastructure

Declaration

cs-api-definition
public virtual PropertyChangeBehaviorCollection GetBehaviors(PropertySettingGroup group)

Parameters

group

PropertySettingGroup

Returns

PropertyChangeBehaviorCollection

Implements IElementSelector.GetBehaviors(PropertySettingGroup)

GetKey()

Declaration

cs-api-definition
protected abstract int GetKey()

Returns

int

GetSelectedElements(RadObject)

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

Declaration

cs-api-definition
public abstract LinkedList<RadObject> GetSelectedElements(RadObject element)

Parameters

element

RadObject

Returns

LinkedList<RadObject>

Implements IElementSelector.GetSelectedElements(RadObject)

IsValueApplied(RadObject)

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

Declaration

cs-api-definition
public bool IsValueApplied(RadObject element)

Parameters

element

RadObject

Returns

bool

IsValueUnapplied(RadObject)

Declaration

cs-api-definition
public bool IsValueUnapplied(RadObject element)

Parameters

element

RadObject

Returns

bool

ShouldUnapply(RadObject)

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

Declaration

cs-api-definition
public virtual bool ShouldUnapply(RadObject onElement)

Parameters

onElement

RadObject

Returns

bool