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

Represent a paragraph within a opendocument document.
Inheritance: IContent, IContentContainer, IHtml, ITextContainer, ICloneable
Show file Open project: monsterlabs/HumanRightsTracker Class Usage Examples

Public Methods

Method Description
Clone ( ) : object

Create a deep clone of this paragraph object.

A possible Attached Style wouldn't be cloned!

GetHtml ( ) : string

Return the content as Html string

Paragraph ( IDocument document ) : System

Initializes a new instance of the Paragraph class. This is a blank paragraph.

Paragraph ( IDocument document, ParentStyles style, string simpletext ) : System

Overloaded constructor. Use this to create a standard paragraph with the given text from string simpletext. Notice, the text will be styled as standard. You won't be able to style it bold, underline, etc. this will only occur if standard style attributes of the texdocumentocument are set to this.

Paragraph ( IDocument document, string styleName ) : System

Create a new Paragraph object.

Paragraph ( XmlNode node, IDocument document ) : System

Initializes a new instance of the Paragraph class.

Private Methods

Method Description
Content_Inserted ( int index, object value ) : void

Content_s the inserted.

Content_Removed ( int index, object value ) : void

Content_s the removed.

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

Create a XmlAttribute for propertie XmlNode.

GetContentHtmlContent ( ) : string

Gets the content of the text HTML.

GetGlobalStyleElement ( XmlNode node, string style ) : string

Gets the global style element.

GetHtmlStyleFromGlobalStyles ( ) : string

Gets the HTML style from global styles. This isn't supported by AODL yet. But if OpenDocument text documents are loaded, this could be.

GetTextHtmlContent ( ) : string

Gets the content of the text HTML.

Init ( string styleName ) : void

Create the Paragraph.

InitStandards ( ) : void

Inits the standards.

NewXmlNode ( ) : void

Create a new XmlNode.

RemoveMixedContent ( object value ) : void

Removes the mixed content

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 paragraph 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

Paragraph() public method

Initializes a new instance of the Paragraph class. This is a blank paragraph.
public Paragraph ( IDocument document ) : System
document IDocument The document.
return System

Paragraph() public method

Overloaded constructor. Use this to create a standard paragraph with the given text from string simpletext. Notice, the text will be styled as standard. You won't be able to style it bold, underline, etc. this will only occur if standard style attributes of the texdocumentocument are set to this.
public Paragraph ( IDocument document, ParentStyles style, string simpletext ) : System
document IDocument The IDocument.
style ParentStyles The only accepted ParentStyle is Standard! All other styles will be ignored!
simpletext string The text which should be append within this paragraph.
return System

Paragraph() public method

Create a new Paragraph object.
public Paragraph ( IDocument document, string styleName ) : System
document IDocument The Texdocumentocument.
styleName string The styleName which should be referenced with this paragraph.
return System

Paragraph() public method

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