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

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

FormatedText() public méthode

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.
Résultat System

FormatedText() public méthode

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.
Résultat System

FormatedText() public méthode

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.
Résultat System

GetHtml() public méthode

Return the content as Html string
public GetHtml ( ) : string
Résultat string