Class
TypeSelector

Represents a type selector. Type selectors are used to apply the same customization to all elements of the same type. Behavior is very similar to that of the CSS type selectors.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class TypeSelector : HierarchicalSelector, IElementSelector

Inheritance: objectSelectorBaseHierarchicalSelectorTypeSelector

Implements: IElementSelector

Inherited Members HierarchicalSelector.GetSelectedElements(RadObject)SelectorBase.ExcludeSelectorSelectorBase.CanSelectIgnoringConditions(RadObject)SelectorBase.CanSelect(RadObject)SelectorBase.CanSelectCore(RadObject)SelectorBase.ShouldUnapply(RadObject)SelectorBase.IsValueApplied(RadObject)SelectorBase.IsValueUnapplied(RadObject)SelectorBase.Apply(RadObject, List<IPropertySetting>)SelectorBase.GetBehaviors(PropertySettingGroup)SelectorBase.ConditionSelectorBase.UnapplyConditionSelectorBase.AutoUnapplySelectorBase.IsActiveSelectorInStyleBuilderSelectorBase.DisableStyleSelectorBase.HasApplyConditionSelectorBase.ChildSelector

Constructors

TypeSelector()

Initializes a new instance of the TypeSelector class.

Declaration

cs-api-definition
public TypeSelector()

TypeSelector(Type)

Initializes a new instance of the TypeSelector class using the type that will be affected.

Declaration

cs-api-definition
public TypeSelector(Type elementType)

Parameters

elementType

Type

TypeSelector(Type, Condition)

Declaration

cs-api-definition
public TypeSelector(Type elementType, Condition condition)

Parameters

elementType

Type

condition

Condition

Properties

CanUseCache

Declaration

cs-api-definition
protected override bool CanUseCache { get; }

Property Value

bool

Overrides HierarchicalSelector.CanUseCache

ElementType

Gets or sets the element type that will be affected by the Type selector.

Declaration

cs-api-definition
public Type ElementType { get; set; }

Property Value

Type

Methods

CanSelectOverride(RadObject)

Declaration

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

Parameters

element

RadObject

Returns

bool

Overrides SelectorBase.CanSelectOverride(RadObject)

Equals(IElementSelector)

Gets value indicating whether the selector Equals to the specified selector

Declaration

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

Parameters

elementSelector

IElementSelector

Returns

bool

Overrides SelectorBase.Equals(IElementSelector)

FindElements(IDictionary)

Declaration

cs-api-definition
protected override LinkedList<RadObject> FindElements(IDictionary ChildrenHierarchyByElement)

Parameters

ChildrenHierarchyByElement

IDictionary

Returns

LinkedList<RadObject>

Overrides HierarchicalSelector.FindElements(IDictionary)

GetKey()

Declaration

cs-api-definition
protected override int GetKey()

Returns

int

Overrides SelectorBase.GetKey()

ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides object.ToString()