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

Represent a paragraph within a opendocument document.
상속: IContent, IContentContainer, IHtml, ITextContainer, ICloneable
파일 보기 프로젝트 열기: monsterlabs/HumanRightsTracker 1 사용 예제들

공개 메소드들

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

비공개 메소드들

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

메소드 상세

Clone() 공개 메소드

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

GetHtml() 공개 메소드

Return the content as Html string
public GetHtml ( ) : string
리턴 string

Paragraph() 공개 메소드

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

Paragraph() 공개 메소드

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.
리턴 System

Paragraph() 공개 메소드

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.
리턴 System

Paragraph() 공개 메소드

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.
리턴 System