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

Represent a paragraph within a opendocument document.
Наследование: IContent, IContentContainer, IHtml, ITextContainer, ICloneable
Показать файл Открыть проект Примеры использования класса

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

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