C# Класс AODL.Document.TextDocuments.TextDocument

Represent a opendocument text document.
Наследование: IDisposable, IDocument
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddNewForm ( string name ) : ODFForm

Adds new form to the forms collection

CreateAttribute ( string name, string prefix ) : XmlAttribute

Create a new XmlAttribute for this document.

CreateNode ( string name, string prefix ) : XmlNode

Create a new XmlNode for this document.

DeleteUnpackedFiles ( ) : void
Dispose ( ) : void

Releases unmanaged resources and performs other cleanup operations before the is reclaimed by garbage collection.

FindControlById ( string id ) : ODFFormControl

Looks for a specific control through all the forms by its ID

FindControlByName ( string name ) : ODFFormControl

Looks for a specific control through all the forms by its name

GetNamespaceUri ( string prefix ) : string

Return the namespaceuri for the given prefixname.

GetObjectByName ( string ObjectName ) : EmbedObject
Load ( string file ) : void

Loads the document by using the specified importer.

New ( ) : TextDocument

Create a blank new document.

SaveTo ( string filename ) : void

Save the TextDocument as OpenDocument textdocument.

SaveTo ( string filename, IExporter iExporter ) : void

Save the document by using the passed IExporter with the passed file name.

TextDocument ( ) : System

Create a new TextDocument object.

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

Метод Описание
AddFont ( string fontname ) : void

Adds a font to the document. All fonts that you use within your text must be added to the document. The class FontFamilies represent all available fonts.

CreateCommonStyleContent ( ) : void

Creates the content of the common style.

CreateContentBody ( ) : void

Creates the content body.

CreateLocalStyleContent ( ) : void

Creates the content of the local style.

Dispose ( bool disposing ) : void

Disposes the specified disposing.

FormsCollection_Clear ( ) : void
FormsCollection_Removed ( int index, object value ) : void
ReadCommonStyles ( ) : void

Reads the common styles.

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

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

Adds new form to the forms collection
public AddNewForm ( string name ) : ODFForm
name string Form name
Результат AODL.Document.Forms.ODFForm

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

Create a new XmlAttribute for this document.
public CreateAttribute ( string name, string prefix ) : XmlAttribute
name string The attributename.
prefix string The prefixname.
Результат System.Xml.XmlAttribute

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

Create a new XmlNode for this document.
public CreateNode ( string name, string prefix ) : XmlNode
name string The elementname.
prefix string The prefix.
Результат System.Xml.XmlNode

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

public DeleteUnpackedFiles ( ) : void
Результат void

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

Releases unmanaged resources and performs other cleanup operations before the is reclaimed by garbage collection.
public Dispose ( ) : void
Результат void

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

Looks for a specific control through all the forms by its ID
public FindControlById ( string id ) : ODFFormControl
id string Control ID
Результат AODL.Document.Forms.Controls.ODFFormControl

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

Looks for a specific control through all the forms by its name
public FindControlByName ( string name ) : ODFFormControl
name string
Результат AODL.Document.Forms.Controls.ODFFormControl

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

Return the namespaceuri for the given prefixname.
public GetNamespaceUri ( string prefix ) : string
prefix string The prefixname.
Результат string

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

public GetObjectByName ( string ObjectName ) : EmbedObject
ObjectName string
Результат AODL.Document.Content.EmbedObjects.EmbedObject

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

Loads the document by using the specified importer.
public Load ( string file ) : void
file string The the file.
Результат void

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

Create a blank new document.
public New ( ) : TextDocument
Результат TextDocument

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

Save the TextDocument as OpenDocument textdocument.
public SaveTo ( string filename ) : void
filename string The filename. With or without full path. Without will save the file to application path!
Результат void

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

Save the document by using the passed IExporter with the passed file name.
public SaveTo ( string filename, IExporter iExporter ) : void
filename string The name of the new file.
iExporter IExporter
Результат void

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

Create a new TextDocument object.
public TextDocument ( ) : System
Результат System