Class
ElementSelector

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class ElementSelector

Inheritance: objectElementSelector

Derived Classes: WrapSelector

Constructors

ElementSelector()

Initializes a new instance of the ElementSelector class.

Declaration

cs-api-definition
public ElementSelector()

ElementSelector(ElementSelector)

Initializes a new instance of the ElementSelector class by using an existing one.

Declaration

cs-api-definition
public ElementSelector(ElementSelector selector)

Parameters

selector

ElementSelector

The ElementSelector to be used as a source.

ElementSelector(ElementSelectorTypes, string)

Initializes a new instance of the ElementSelector class by specifying selector properties.

Declaration

cs-api-definition
public ElementSelector(ElementSelectorTypes type, string value)

Parameters

type

ElementSelectorTypes

The selector type.

value

string

The selector value

ElementSelector(string)

Initializes a new instance of the ElementSelector class by specifying element state. Sets thw type property to VisualStateSelector.

Declaration

cs-api-definition
public ElementSelector(string elementState)

Parameters

elementState

string

The element state.

Properties

ChildSelector

Gets or sets the child selector.

Declaration

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

Property Value

ElementSelector

Type

Gets or sets the selector type.

Declaration

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

Property Value

ElementSelectorTypes

Value

Gets or sets the selector value.

Declaration

cs-api-definition
public string Value { get; set; }

Property Value

string

Methods

Equals(object)

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

Returns

bool

Overrides object.Equals(object)

GetHashCode()

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Overrides object.GetHashCode()

IsCompatible(ElementSelector)

Determines whether the selector is compatible with specific selector.

Declaration

cs-api-definition
public bool IsCompatible(ElementSelector selector)

Parameters

selector

ElementSelector

The selector.

Returns

bool

true if successfull.

IsCompatible(RadObject)

Determines whether the selector is compatible with the specified element.

Declaration

cs-api-definition
public virtual bool IsCompatible(RadObject element)

Parameters

element

RadObject

The element to compare with.

Returns

bool

true if the element is compatible.

IsValid(RadObject, string)

Determines whether the selector is valid an element with specific state.

Declaration

cs-api-definition
public virtual bool IsValid(RadObject testElement, string state)

Parameters

testElement

RadObject

The element to compare with.

state

string

The element state.

Returns

bool

true if the selector is valid.