Table of Contents

Class Attribute

Namespace
Loehnert.Asciidoc
Assembly
Loehnert.Asciidoc.dll

Represents a AsciiDoc attribute.

public class Attribute : Element
Inheritance
Attribute
Inherited Members
Extension Methods

Constructors

Attribute(string, object)

Initializes a new instance of the Attribute class.

public Attribute(string name, object value = null)

Parameters

name string

Name of the attribute.

value object

Value of the attribute.

Properties

Value

Gets the value of the attribute.

public object Value { get; }

Property Value

object

Methods

AddAsciidocTo(StringBuilder)

Converts the element to AsciiDoc.

public override void AddAsciidocTo(StringBuilder builder)

Parameters

builder StringBuilder

The AsciiDoc content is added to this.

RevisionDate(object)

Creates a revision date attribute.

public static Attribute RevisionDate(object value)

Parameters

value object

Value of the attribute.

Returns

Attribute

A revision date attribute.

RevisionNumber(object)

Creates a revision number attribute.

public static Attribute RevisionNumber(object value)

Parameters

value object

Value of the attribute.

Returns

Attribute

A revision number attribute.

RevisionRemark(object)

Creates a revision remark attribute.

public static Attribute RevisionRemark(object value)

Parameters

value object

Value of the attribute.

Returns

Attribute

A revision remark attribute.

Unset()

Unsets the attribute.

public Attribute Unset()

Returns

Attribute

The unset attribute.