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

Represent a formated Text e.g bold, italic, underline etc.
Inheritance: IHtml, IText, ITextContainer, ICloneable
Show file Open project: monsterlabs/HumanRightsTracker Class Usage Examples

Public Methods

Method Description
Clone ( ) : object

Create a deep clone of this FormatedText object.

A possible Attached Style wouldn't be cloned!

FormatedText ( IDocument document, TextStyle textstyle, string text ) : System

Overloaded constructor.

FormatedText ( IDocument document, XmlNode node ) : System

Initializes a new instance of the FormatedText class.

FormatedText ( IDocument document, string name, string text ) : System

Overloaded constructor.

GetHtml ( ) : string

Return the content as Html string

Private Methods

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

Create a XmlAttribute for propertie XmlNode.

GetSubOrSupEndTag ( ) : string

Gets the sub or sup end tag.

GetSubOrSupStartTag ( ) : string

Gets the sub or sup start tag.

GetTextWithHtmlControl ( ) : string

Gets the text with HTML controls as Tab as   and line-break as br tag

InitStandards ( ) : void

Inits the standards.

NewXmlNode ( string stylename ) : void

Create a new XmlNode.

TextContent_Inserted ( int index, object value ) : void

Texts the content_ inserted.

TextContent_Removed ( int index, object value ) : void

Texts the content_ removed.

Method Details

Clone() public method

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

FormatedText() public method

Overloaded constructor.
public FormatedText ( IDocument document, TextStyle textstyle, string text ) : System
document IDocument The content object to which the formated text belongs to.
textstyle AODL.Document.Styles.TextStyle An existing TextStyle object.
text string The Displaytext.
return System

FormatedText() public method

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

FormatedText() public method

Overloaded constructor.
public FormatedText ( IDocument document, string name, string text ) : System
document IDocument The content object to which the formated text belongs to.
name string The stylename which should be referenced with this FormatedText object.
text string The Displaytext.
return System

GetHtml() public method

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