Class HTMLAnchorElement

Class HTMLAnchorElement

Namespace: Aspose.Html
Assembly: Aspose.HTML.dll (25.4.0)

The anchor element. See the A element definition in HTML 4.01.

See also the Document object Model (DOM) Level 2 HTML Specification.

[DOMName("HTMLAnchorElement")]
[ComVisible(true)]
[DOMObject]
public class HTMLAnchorElement : HTMLElement, INotifyPropertyChanged, IEventTarget, IDisposable, IXPathNSResolver, IParentNode, IElementTraversal, IChildNode, IElementCSSInlineStyle, IGlobalEventHandlers

Inheritance

object DOMObject EventTarget Node Element HTMLElement HTMLAnchorElement

Implements

INotifyPropertyChanged , IEventTarget , IDisposable , IXPathNSResolver , IParentNode , IElementTraversal , IChildNode , IElementCSSInlineStyle , IGlobalEventHandlers

Inherited Members

HTMLElement.Id , HTMLElement.Title , HTMLElement.Lang , HTMLElement.Dir , HTMLElement.ClassName , HTMLElement.Style , HTMLElement.OnAbort , HTMLElement.OnBlur , HTMLElement.OnCancel , HTMLElement.OnCanplay , HTMLElement.OnCanPlayThrough , HTMLElement.OnChange , HTMLElement.OnClick , HTMLElement.OnCueChange , HTMLElement.OnDblClick , HTMLElement.OnDurationChange , HTMLElement.OnEmptied , HTMLElement.OnEnded , HTMLElement.OnError , HTMLElement.OnFocus , HTMLElement.OnInput , HTMLElement.OnInvalid , HTMLElement.OnKeyDown , HTMLElement.OnKeyPress , HTMLElement.OnKeyUp , HTMLElement.OnLoad , HTMLElement.OnLoadedData , HTMLElement.OnLoadedMetadata , HTMLElement.OnLoadStart , HTMLElement.OnMouseDown , HTMLElement.OnMouseEnter , HTMLElement.OnMouseLeave , HTMLElement.OnMouseMove , HTMLElement.OnMouseOut , HTMLElement.OnMouseOver , HTMLElement.OnMouseUp , HTMLElement.OnMouseWheel , HTMLElement.OnPause , HTMLElement.OnPlay , HTMLElement.OnPlaying , HTMLElement.OnProgress , HTMLElement.OnRateChange , HTMLElement.OnReset , HTMLElement.OnResize , HTMLElement.OnScroll , HTMLElement.OnSeeked , HTMLElement.OnSeeking , HTMLElement.OnSelect , HTMLElement.OnShow , HTMLElement.OnStalled , HTMLElement.OnSubmit , HTMLElement.OnSuspend , HTMLElement.OnTimeUpdate , HTMLElement.OnToggle , HTMLElement.OnVolumeChange , HTMLElement.OnWaiting , Element.GetAttributeNames() , Element.HasAttributes() , Element.GetAttribute(string) , Element.GetAttributeNS(string, string) , Element.SetAttribute(string, string) , Element.SetAttributeNS(string, string, string) , Element.RemoveAttribute(string) , Element.RemoveAttributeNS(string, string) , Element.HasAttribute(string) , Element.HasAttributeNS(string, string) , Element.ToggleAttribute(string) , Element.ToggleAttribute(string, bool) , Element.GetAttributeNode(string) , Element.SetAttributeNode(Attr) , Element.RemoveAttributeNode(Attr) , Element.GetAttributeNodeNS(string, string) , Element.SetAttributeNodeNS(Attr) , Element.GetElementsByTagName(string) , Element.GetElementsByTagNameNS(string, string) , Element.Remove() , Element.QuerySelectorAll(string) , Element.QuerySelector(string) , Element.AttachShadow(ShadowRootMode) , Element.GetElementsByClassName(string) , Element.Dispose(bool) , Element.ClassList , Element.LocalName , Element.NamespaceURI , Element.Prefix , Element.NodeName , Element.NodeType , Element.TagName , Element.Id , Element.ClassName , Element.TextContent , Element.Attributes , Element.FirstElementChild , Element.LastElementChild , Element.PreviousElementSibling , Element.NextElementSibling , Element.ChildElementCount , Element.Children , Element.InnerHTML , Element.OuterHTML , Element.ShadowRoot , Node.ELEMENT_NODE , Node.ATTRIBUTE_NODE , Node.TEXT_NODE , Node.CDATA_SECTION_NODE , Node.ENTITY_REFERENCE_NODE , Node.ENTITY_NODE , Node.PROCESSING_INSTRUCTION_NODE , Node.COMMENT_NODE , Node.DOCUMENT_NODE , Node.DOCUMENT_TYPE_NODE , Node.DOCUMENT_FRAGMENT_NODE , Node.NOTATION_NODE , Node.HasChildNodes() , Node.Normalize() , Node.CloneNode() , Node.CloneNode(bool) , Node.IsEqualNode(Node) , Node.IsSameNode(Node) , Node.LookupPrefix(string) , Node.LookupNamespaceURI(string) , Node.IsDefaultNamespace(string) , Node.InsertBefore(Node, Node) , Node.ReplaceChild(Node, Node) , Node.RemoveChild(Node) , Node.AppendChild(Node) , Node.Dispose(bool) , Node.ToString() , Node.NodeType , Node.LocalName , Node.NamespaceURI , Node.Prefix , Node.NodeName , Node.BaseURI , Node.OwnerDocument , Node.ParentNode , Node.ParentElement , Node.ChildNodes , Node.FirstChild , Node.LastChild , Node.PreviousSibling , Node.NextSibling , Node.NodeValue , Node.TextContent , EventTarget.AddEventListener(string, DOMEventHandler, bool) , EventTarget.AddEventListener(string, IEventListener) , EventTarget.AddEventListener(string, IEventListener, bool) , EventTarget.RemoveEventListener(string, DOMEventHandler, bool) , EventTarget.RemoveEventListener(string, IEventListener) , EventTarget.RemoveEventListener(string, IEventListener, bool) , EventTarget.DispatchEvent(Event) , EventTarget.Dispose() , EventTarget.Dispose(bool) , DOMObject.GetPlatformType() , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Properties

AccessKey

A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.01.

[DOMName("accessKey")]
public string AccessKey { get; set; }

Property Value

string

Charset

The character encoding of the linked resource. See the charset attribute definition in HTML 4.01.

[DOMName("charset")]
public string Charset { get; set; }

Property Value

string

Coords

Comma-separated list of lengths, defining an active region geometry. See also shape for the shape of the region. See the coords attribute definition in HTML 4.01.

[DOMName("coords")]
public string Coords { get; set; }

Property Value

string

Hash

Gets or sets a string representation of the hash segment of the associated URL.

[DOMName("hash")]
public string Hash { get; set; }

Property Value

string

Host

Gets or sets a string representation of the host and port segments of the associated URL.

[DOMName("host")]
public string Host { get; set; }

Property Value

string

Hostname

Gets or sets a string representation of the host segment of the associated URL.

[DOMName("hostname")]
public string Hostname { get; set; }

Property Value

string

Href

The absolute URI [IETF RFC 2396] of the linked resource. See the href attribute definition in HTML 4.01.

[DOMName("href")]
public string Href { get; set; }

Property Value

string

Hreflang

Language code of the linked resource. See the hreflang attribute definition in HTML 4.01.

[DOMName("hreflang")]
public string Hreflang { get; set; }

Property Value

string

Name

Anchor name. See the name attribute definition in HTML 4.01.

[DOMName("name")]
public string Name { get; set; }

Property Value

string

Origin

Gets a string representation of the origin segment of the associated URL.

[DOMName("origin")]
public string Origin { get; }

Property Value

string

Password

Gets or sets a string representation of the password segment of the associated URL.

[DOMName("password")]
public string Password { get; set; }

Property Value

string

Pathname

Gets or sets a string representation of the path segment of the associated URL.

[DOMName("pathname")]
public string Pathname { get; set; }

Property Value

string

Port

Gets or sets a string representation of the port segment of the associated URL.

[DOMName("port")]
public string Port { get; set; }

Property Value

string

Protocol

Gets or sets a string representation of the scheme segment of the associated URL.

[DOMName("protocol")]
public string Protocol { get; set; }

Property Value

string

Rel

Forward link type. See the rel attribute definition in HTML 4.01.

[DOMName("rel")]
public string Rel { get; set; }

Property Value

string

RelList

Returns a live DOMTokenList which contains tokens received from parsing the “rel” attribute.

[DOMName("relList")]
public DOMTokenList RelList { get; }

Property Value

DOMTokenList

Rev

Reverse link type. See the rev attribute definition in HTML 4.01.

[DOMName("rev")]
public string Rev { get; set; }

Property Value

string

Search

Gets or sets a string representation of the search segment of the associated URL.

[DOMName("search")]
public string Search { get; set; }

Property Value

string

Shape

The shape of the active area. The coordinates are given by coords. See the shape attribute definition in HTML 4.01.

[DOMName("shape")]
public string Shape { get; set; }

Property Value

string

TabIndex

Index that represents the element’s position in the tabbing order. See the tabindex attribute definition in HTML 4.01.

[DOMName("tabIndex")]
public int TabIndex { get; set; }

Property Value

int

Target

Frame to render the resource in. See the target attribute definition in HTML 4.01.

[DOMName("target")]
public string Target { get; set; }

Property Value

string

Type

Advisory content type. See the type attribute definition in HTML 4.01.

[DOMName("type")]
public string Type { get; set; }

Property Value

string

Username

Gets or sets a string representation of the username segment of the associated URL.

[DOMName("username")]
public string Username { get; set; }

Property Value

string

Methods

Blur()

Removes keyboard focus from this element.

[DOMName("blur")]
public void Blur()

Focus()

Gives keyboard focus to this element.

[DOMName("focus")]
public void Focus()
 English