.NET Framework Class Library for Silverlight
HtmlElement Members

Represents an HTML element in the Document Object Model (DOM) of a Web page.

The HtmlElement type exposes the following members.

Methods

  NameDescription
Public methodAppendChildOverloaded. Adds an element to the child collection for the current HTML element.
Public methodAttachEventOverloaded. Attaches a .NET Framework event handler to an event on the current Document Object Model (DOM) object.
Public methodCheckAccessDetermines whether the current thread is the browser's UI thread. (Inherited from ScriptObject.)
Protected methodConvertToConverts the current object to a specified type. This method is not supported. (Inherited from HtmlObject.)
Public methodConvertTo<(Of <(T>)>)Converts the current scriptable object to a specified type. (Inherited from ScriptObject.)
Public methodDetachEventOverloaded. Detaches a .NET Framework event handler from an event on the current Document Object Model (DOM) object.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeFrees resources and performs other cleanup operations before the scriptable object is reclaimed by garbage collection. (Inherited from ScriptObject.)
Public methodFocusSets the browser focus to the current HTML element.
Public methodGetAttributeGets the value of the specified attribute on the current HTML element.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetPropertyOverloaded. Gets the value of a property on the current scriptable object.
Public methodGetStyleAttributeRetrieves the specified style attribute for the current HTML element.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodInitializeInfrastructure. Initializes a scriptable object. (Inherited from ScriptObject.)
Public methodInvokeInvokes a method on the current scriptable object, and optionally passes in one or more method parameters. (Inherited from ScriptObject.)
Public methodInvokeSelfInvokes the current ScriptObject and assumes that it represents a JavaScript method. (Inherited from ScriptObject.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemoveAttributeRemoves an attribute from the current HTML element.
Public methodRemoveChildRemoves the specified element from the child element collection of the current HTML element.
Public methodRemoveStyleAttributeRemoves a style attribute on the current HTML element.
Public methodSetAttributeSets the value of an attribute on the current HTML element.
Public methodSetPropertyOverloaded. Sets a property on the current scriptable object.
Public methodSetStyleAttributeSets the value of a style attribute on the current HTML element.
Public methodToStringReturns a String that represents the current Object. (Inherited from Object.)
Top
Properties

  NameDescription
Public propertyChildrenGets a read-only collection of HTML elements that are immediate descendants of the current HTML element.
Public propertyCssClassGets or sets the cascading style sheet (CSS) class string for the current HTML element.
Public propertyDispatcherGets an instance of the dispatcher. (Inherited from ScriptObject.)
Public propertyIdGets the identifier of the current HTML element.
Public propertyManagedObjectGets the underlying managed object reference of the ScriptObject. (Inherited from ScriptObject.)
Public propertyParentGets a reference to the parent of the current HTML element.
Public propertyTagNameGets the HTML tag name of the current HTML element.
Top
See Also

Reference

Tags :


Page view tracker