Table of Contents

Class Anchor

Namespace
Loehnert.Asciidoc
Assembly
Loehnert.Asciidoc.dll

Represents an anchor for a cross reference.

public class Anchor : Element
Inheritance
Anchor
Inherited Members
Extension Methods

Constructors

Anchor(Element, string)

Initializes a new instance of the Anchor class.

public Anchor(Element element, string id)

Parameters

element Element

Element of the anchor, for example a Section.

id string

ID of the anchor, without a leading '#'.

Properties

Element

Gets the element of the anchor.

public Element Element { get; }

Property Value

Element

Identifier

Gets the anchor identifier.

public string Identifier { get; }

Property Value

string

Methods

AddAsciidocTo(StringBuilder)

Converts the element to AsciiDoc.

public override void AddAsciidocTo(StringBuilder builder)

Parameters

builder StringBuilder

The AsciiDoc content is added to this.