HtmlDocument Class
Silverlight
Represents the HTML document in the browser.
System.Object
System.Windows.Browser.ScriptObject
System.Windows.Browser.HtmlObject
System.Windows.Browser.HtmlDocument
System.Windows.Browser.ScriptObject
System.Windows.Browser.HtmlObject
System.Windows.Browser.HtmlDocument
Namespace: System.Windows.Browser
Assembly: System.Windows.Browser (in System.Windows.Browser.dll)
The HtmlDocument type exposes the following members.
| Name | Description | |
|---|---|---|
|
Body | Gets a reference to the BODY element of the HTML document. |
|
Cookies | Gets or sets the browser's cookie string. |
|
Dispatcher | Gets an instance of the dispatcher. (Inherited from ScriptObject.) |
|
DocumentElement | Gets a reference to the browser's DOCUMENT element. |
|
DocumentUri | Gets a Uniform Resource Identifier (URI) object that represents the HTML document on which the Silverlight plug-in is hosted. |
|
IsReady | Gets or sets a value that indicates whether the browser has completely loaded the HTML page. |
|
ManagedObject | Gets the underlying managed object reference of the ScriptObject. (Inherited from ScriptObject.) |
|
QueryString | Gets a navigable, read-only collection of name/value pairs that represent the query string parameters on the current page's URL. |
| Name | Description | |
|---|---|---|
|
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.) |
|
CreateElement | Creates a browser element. |
|
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.) |
|
GetElementById | Gets a single browser element. |
|
GetElementsByTagName | Gets a collection of browser elements. |
|
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.) |
|
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.) |
|
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.) |
|
Submit() | Posts user data from the FORM element in the browser's Document Object Model (DOM) to the server. |
|
Submit(String) | Posts user data from the specified FORM element to the server. |
|
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.) |
You can use two Silverlight classes to access and manipulate the Document Object Model (DOM): HtmlPage and HtmlDocument.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.