C# 클래스 AODL.Document.Content.Text.FormatedText

Represent a formated Text e.g bold, italic, underline etc.
상속: IHtml, IText, ITextContainer, ICloneable
파일 보기 프로젝트 열기: monsterlabs/HumanRightsTracker 1 사용 예제들

공개 메소드들

메소드 설명
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