Skip to main content
All docs
V23.2

DxHtmlElement Methods

An element of an HTML-CSS template.
Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
FindElement(Predicate<DxHtmlElement>)
FindElementById(String) Returns an item of this element’s Children collection that has the target ID. If multiple items are present, it returns the first found item.
FindElementsByClass(String) Returns all of this element’s Children collection items that are styled with the target CSS class.
FindElementsByTag(String) Returns all of this element’s Children collection items that have the specific tag.
FindInputElement(String)
Focus(Boolean) Gets or sets whether this element is focused. Focused elements are styled with the “main_class_name:focus” CSS pseudo-class.
ForEach(Action<DxHtmlElement>, Predicate<DxHtmlElement>) Modifies all child elements that match the given predicate. This method searches for matching elements recursively: first among this element’s Children collection, then among child elements of these children, and so on, until it reaches the lowermost elements.
GetComputedStyle() Returns the actual CSS style applied to this element.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
HasClassName(DxHtmlElement, String, Boolean) static
HasId(DxHtmlElement, String, Boolean) static
HasTag(DxHtmlElement, String, Boolean) static
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Select(Boolean) Gets or sets whether this element is selected. Focused elements are styled with the “main_class_name:select” CSS pseudo-class.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also