skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ElementSelector

Inheritance
System.Object
ElementSelector
WrapSelector
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll

Syntax

public class ElementSelector

Constructors

ElementSelector()

Initializes a new instance of the ElementSelector class.

Declaration
public ElementSelector()

ElementSelector(String)

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

Declaration
public ElementSelector(string elementState)
Parameters
System.String elementState

The element state.

ElementSelector(ElementSelector)

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

Declaration
public ElementSelector(ElementSelector selector)
Parameters
ElementSelector selector

The ElementSelector to be used as a source.

ElementSelector(ElementSelectorTypes, String)

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

Declaration
public ElementSelector(ElementSelectorTypes type, string value)
Parameters
ElementSelectorTypes type

The selector type.

System.String value

The selector value

Properties

ChildSelector

Gets or sets the child selector.

Declaration
public ElementSelector ChildSelector { get; set; }
Property Value
ElementSelector

Type

Gets or sets the selector type.

Declaration
public ElementSelectorTypes Type { get; set; }
Property Value
ElementSelectorTypes

Value

Gets or sets the selector value.

Declaration
public string Value { get; set; }
Property Value
System.String

Methods

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
System.Object obj

Returns
System.Boolean

Overrides
System.Object.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
System.Int32

Overrides
System.Object.GetHashCode()

IsCompatible(ElementSelector)

Determines whether the selector is compatible with specific selector.

Declaration
public bool IsCompatible(ElementSelector selector)
Parameters
ElementSelector selector

The selector.

Returns
System.Boolean

true if successfull.

IsCompatible(RadObject)

Determines whether the selector is compatible with the specified element.

Declaration
public virtual bool IsCompatible(RadObject element)
Parameters
RadObject element

The element to compare with.

Returns
System.Boolean

true if the element is compatible.

IsValid(RadObject, String)

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

Declaration
public virtual bool IsValid(RadObject testElement, string state)
Parameters
RadObject testElement

The element to compare with.

System.String state

The element state.

Returns
System.Boolean

true if the selector is valid.

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.