C# Класс AODL.Document.Content.Text.FormatedText

Represent a formated Text e.g bold, italic, underline etc.
Наследование: IHtml, IText, ITextContainer, ICloneable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

Clone() публичный Метод

Create a deep clone of this FormatedText object.
A possible Attached Style wouldn't be cloned!
public Clone ( ) : object
Результат object

FormatedText() публичный Метод

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.
Результат System

FormatedText() публичный Метод

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.
Результат System

FormatedText() публичный Метод

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.
Результат System

GetHtml() публичный Метод

Return the content as Html string
public GetHtml ( ) : string
Результат string