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

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class ElementSelector

Inheritance: objectElementSelector

Derived Classes: WrapSelector

Constructors

Initializes a new instance of the ElementSelector class.

C#
public ElementSelector()

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

C#
public ElementSelector(ElementSelector selector)
Parameters:selectorElementSelector

The ElementSelector to be used as a source.

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

C#
public ElementSelector(ElementSelectorTypes type, string value)
Parameters:typeElementSelectorTypes

The selector type.

valuestring

The selector value

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

C#
public ElementSelector(string elementState)
Parameters:elementStatestring

The element state.

Properties

Gets or sets the child selector.

C#
public ElementSelector ChildSelector { get; set; }

Gets or sets the selector type.

C#
public ElementSelectorTypes Type { get; set; }

Gets or sets the selector value.

C#
public string Value { get; set; }

Methods

C#
public override bool Equals(object obj)
Parameters:objobjectReturns:

bool

Overrides: object.Equals(object)

C#
public override int GetHashCode()
Returns:

int

Overrides: object.GetHashCode()

Determines whether the selector is compatible with specific selector.

C#
public bool IsCompatible(ElementSelector selector)
Parameters:selectorElementSelector

The selector.

Returns:

bool

true if successfull.

Determines whether the selector is compatible with the specified element.

C#
public virtual bool IsCompatible(RadObject element)
Parameters:elementRadObject

The element to compare with.

Returns:

bool

true if the element is compatible.

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

C#
public virtual bool IsValid(RadObject testElement, string state)
Parameters:testElementRadObject

The element to compare with.

statestring

The element state.

Returns:

bool

true if the selector is valid.