DxHtmlElement Members
An element of an HTML-CSS template.Constructors
| Name | Description |
|---|---|
| DxHtmlElement(DxHtmlDocumentNode) | Initializes a new instance of the DxHtmlElement class with specified settings. |
Properties
| Name | Description |
|---|---|
| ChildElementCount | Returns the number of elements owned by this HTML element (the length of the DxHtmlElement.Children collection). |
| Children | Returns HTML elements owned by this element. This collection includes only direct children; elements owned by child elements are not included. |
| ClassName | Gets or sets the name of the CSS style applied to this element. |
| ClientHeight | Returns the height of the element’s client area (the area that contains child elements of this HTML element). |
| ClientLeft | Returns the distance between the element’s left border and the left border of this element’s client area (the area that contains child elements of this HTML element). |
| ClientTop | Returns the distance between the element’s top border and the top border of this element’s client area (the area that contains child elements of this HTML element). |
| ClientWidth | Returns the width of the element’s client area (the area that contains child elements of this HTML element). |
| Disabled |
Gets or sets whether this element is disabled. Disabled elements do not trigger HtmlElementMouseClick and HtmlElementMouseDown events, and are styled with the “main_class_name:disabled” CSS pseudo-class.
|
| Hidden | Gets or sets whether this element is shown on-screen. |
| Id | Gets or sets the unique element identifier. You can search elements by their IDs with the FindElementById(String) method. |
| Internals | |
| IsFocusable | |
| NodeType | |
| ShadowRoot | |
| Slot | |
| Style | |
| TabIndex | |
| TagName | |
| Title | Gets or sets the element tooltip. |
Methods
| 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