HTMLAreaElement

HTMLAreaElement class

The class represents client-side image map area definition. See the AREA element definition in HTML 4.01.

public class HTMLAreaElement : HTMLElement

Properties

NameDescription
Attributes { get; }Gets the attributes of the element.
virtual BaseURI { get; }Gets the absolute base URI of this node or null if the implementation wasn’t able to obtain an absolute URI.
ChildElements { get; }Gets the child elements of the element.
ChildNodes { get; }Gets the child nodes.
ClassName { get; set; }Gets or sets the class attribute of the element. This attribute has been renamed due to conflicts with the “class” keyword exposed by many languages. See the class attribute definition in HTML 4.01.
Dir { get; set; }Gets or sets the base direction of directionally neutral text and the directionality of tables. See the dir attribute definition in HTML 4.01.
FirstChild { get; }Gets the first child of this node. If there is no such node, this returns null.
HasChildNodes { get; }Gets whether this node has any children.
Id { get; set; }Gets or sets the element’s identifier. See the id attribute definition in HTML 4.01.
Lang { get; set; }Gets or sets the language code defined in RFC 1766. See the lang attribute definition in HTML 4.01.
LastChild { get; }Gets the last child of this node. If there is no such node, this returns null.
override LocalName { get; }Gets the local name of the element.
override NamespaceURI { get; }Gets the namespace URI of the element.
NextSibling { get; }Gets the node immediately following this node. If there is no such node, this returns null.
override NodeName { get; }Gets the node name of the element.
NodeType { get; }Gets the node type.
virtual NodeValue { get; set; }Gets or sets the value of this node, depending on its type.
OwnerDocument { get; }Gets the document object associated with this node.
ParentElement { get; }Gets the parent element of the element.
ParentNode { get; }Gets the parent node.
override Prefix { get; }Gets the prefix of the element.
PreviousSibling { get; }Gets the node immediately preceding this node. If there is no such node, this returns null.
override TextContent { get; set; }Gets the text content of the element.
Title { get; set; }Gets or sets the element’s advisory title. See the title attribute definition in HTML 4.01.

Methods

NameDescription
AppendChild(Node)Adds the node newChild to the end of the list of children of this node.
GetAttribute(string)Gets an attribute value by name.
GetAttributeNS(string, string)Gets an attribute value by local name and namespace URI.
HasAttribute(string)Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise.
HasAttributeNS(string, string)Returns true when an attribute with a given local name and namespace URI is specified on this element or has a default value, false otherwise.
RemoveAttribute(string)Removes an attribute by name.
RemoveAttributeNS(string, string)Removes an attribute by local name and namespace URI.
RemoveChild(Node)Removes the child node indicated by old child from the list of children.
ReplaceChild(Node, Node)Replaces the child node old child with new child in the list of children, and returns the old child node.
SetAttribute(string, string)Adds a new attribute. If an attribute with that name is already present in the element, its value is changed to be that of the value parameter.
SetAttributeNS(string, string, string)Adds a new attribute. If an attribute with the same local name and namespace URI is already present on the element, its prefix is changed to be the prefix part of the qualifiedName, and its value is changed to be the value parameter.

See Also