C# Class AODL.Document.Content.Text.Header

Header represent a header.
Inheritance: IContent, IHtml, ITextContainer, ICloneable
Show file Open project: monsterlabs/HumanRightsTracker Class Usage Examples

Public Methods

Method Description
Clone ( ) : object

Create a deep clone of this Header object.

A possible Attached Style wouldn't be cloned!

GetHtml ( ) : string

Return the content as Html string

Header ( IDocument document, Headings heading ) : System

Initializes a new instance of the Header class.

Header ( XmlNode headernode, IDocument document ) : System

Initializes a new instance of the Header class.

Private Methods

Method Description
CreateAttribute ( string name, string text, string prefix ) : void

Create a XmlAttribute for propertie XmlNode.

GetAnchor ( ) : string

Gets the html anchor, if the document use a table of contents

GetHeading ( Headings heading ) : string

Gets the heading.

GetHeadingNumber ( ) : string

Gets the heading number, if used via Outline-Level. Support for outline numbering up to deepth of 6, yet.

GetHtmlStyle ( string headingname ) : string

Gets the HTML style.

InitStandards ( ) : void

Inits the standards.

NewXmlNode ( ) : void

Create a new XmlNode.

TextContent_Inserted ( int index, object value ) : void

Append the xml from added IText object.

TextContent_Removed ( int index, object value ) : void

Texts the content_ removed.

Method Details

Clone() public method

Create a deep clone of this Header object.
A possible Attached Style wouldn't be cloned!
public Clone ( ) : object
return object

GetHtml() public method

Return the content as Html string
public GetHtml ( ) : string
return string

Header() public method

Initializes a new instance of the Header class.
public Header ( IDocument document, Headings heading ) : System
document IDocument The document.
heading Headings The heading.
return System

Header() public method

Initializes a new instance of the Header class.
public Header ( XmlNode headernode, IDocument document ) : System
headernode System.Xml.XmlNode The headernode.
document IDocument The document.
return System