HtmlElement Class
Silverlight
Represents an HTML element in the Document Object Model (DOM) of a Web page.
System.Object
System.Windows.Browser.ScriptObject
System.Windows.Browser.HtmlObject
System.Windows.Browser.HtmlElement
System.Windows.Browser.ScriptObject
System.Windows.Browser.HtmlObject
System.Windows.Browser.HtmlElement
Namespace: System.Windows.Browser
Assembly: System.Windows.Browser (in System.Windows.Browser.dll)
The HtmlElement type exposes the following members.
| Name | Description | |
|---|---|---|
|
Children | Gets a read-only collection of HTML elements that are immediate descendants of the current HTML element. |
|
CssClass | Gets or sets the cascading style sheet (CSS) class string for the current HTML element. |
|
Dispatcher | Gets an instance of the dispatcher. (Inherited from ScriptObject.) |
|
Id | Gets the identifier of the current HTML element. |
|
ManagedObject | Gets the underlying managed object reference of the ScriptObject. (Inherited from ScriptObject.) |
|
Parent | Gets a reference to the parent of the current HTML element. |
|
TagName | Gets the HTML tag name of the current HTML element. |
| Name | Description | |
|---|---|---|
|
AppendChild(HtmlElement) | Adds an element to the end of the child collection for the current HTML element. |
|
AppendChild(HtmlElement, HtmlElement) | Adds an element at a specified location in the child element collection for the current HTML element. |
|
AttachEvent(String, EventHandler) | Attaches the specified .NET Framework event handler (EventHandler) to the specified event on the current Document Object Model (DOM) object. (Inherited from HtmlObject.) |
|
AttachEvent(String, EventHandler<HtmlEventArgs>) | Attaches the specified .NET Framework event handler (EventHandler<TEventArgs>) to the specified event on the current Document Object Model (DOM) object. (Inherited from HtmlObject.) |
|
CheckAccess | Determines whether the current thread is the browser's UI thread. (Inherited from ScriptObject.) |
|
ConvertTo(Type, Boolean) | Converts the current object to a specified type. This method is not supported. (Inherited from HtmlObject.) |
|
ConvertTo<T>() | Converts the current scriptable object to a specified type. (Inherited from ScriptObject.) |
|
DetachEvent(String, EventHandler) | Detaches the specified.NET Framework event handler (EventHandler) from the specified event on the current Document Object Model (DOM) object. (Inherited from HtmlObject.) |
|
DetachEvent(String, EventHandler<HtmlEventArgs>) | Detaches the specified .NET Framework event handler (EventHandler<TEventArgs>) from the specified event on the current Document Object Model (DOM) object. (Inherited from HtmlObject.) |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Frees resources and performs other cleanup operations before the scriptable object is reclaimed by garbage collection. (Inherited from ScriptObject.) |
|
Focus | Sets the browser focus to the current HTML element. |
|
GetAttribute | Gets the value of the specified attribute on the current HTML element. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetProperty(Int32) | Gets the value of a property that is identified by ordinal number on the current scriptable object. (Inherited from ScriptObject.) |
|
GetProperty(String) | Gets the value of a property that is identified by name on the current scriptable object. (Inherited from ScriptObject.) |
|
GetStyleAttribute | Retrieves the specified style attribute for the current HTML element. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
Initialize | Infrastructure. Initializes a scriptable object. (Inherited from ScriptObject.) |
|
Invoke | Invokes a method on the current scriptable object, and optionally passes in one or more method parameters. (Inherited from ScriptObject.) |
|
InvokeSelf | Invokes the current ScriptObject and assumes that it represents a JavaScript method. (Inherited from ScriptObject.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
RemoveAttribute | Removes an attribute from the current HTML element. |
|
RemoveChild | Removes the specified element from the child element collection of the current HTML element. |
|
RemoveStyleAttribute | Removes a style attribute on the current HTML element. |
|
SetAttribute | Sets the value of an attribute on the current HTML element. |
|
SetProperty(Int32, Object) | Sets the value of a property that is identified by ordinal number on the current scriptable object. (Inherited from ScriptObject.) |
|
SetProperty(String, Object) | Sets a property that is identified by name on the current scriptable object. (Inherited from ScriptObject.) |
|
SetStyleAttribute | Sets the value of a style attribute on the current HTML element. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
IDynamicMetaObjectProvider.GetMetaObject | Returns the DynamicMetaObject responsible for binding operations performed on this object. (Inherited from ScriptObject.) |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.