C# Class AODL.Document.TextDocuments.TextDocument

Represent a opendocument text document.
Inheritance: IDisposable, IDocument
Afficher le fichier Open project: monsterlabs/HumanRightsTracker Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

AddNewForm() public méthode

Adds new form to the forms collection
public AddNewForm ( string name ) : ODFForm
name string Form name
Résultat AODL.Document.Forms.ODFForm

CreateAttribute() public méthode

Create a new XmlAttribute for this document.
public CreateAttribute ( string name, string prefix ) : XmlAttribute
name string The attributename.
prefix string The prefixname.
Résultat System.Xml.XmlAttribute

CreateNode() public méthode

Create a new XmlNode for this document.
public CreateNode ( string name, string prefix ) : XmlNode
name string The elementname.
prefix string The prefix.
Résultat System.Xml.XmlNode

DeleteUnpackedFiles() public méthode

public DeleteUnpackedFiles ( ) : void
Résultat void

Dispose() public méthode

Releases unmanaged resources and performs other cleanup operations before the is reclaimed by garbage collection.
public Dispose ( ) : void
Résultat void

FindControlById() public méthode

Looks for a specific control through all the forms by its ID
public FindControlById ( string id ) : ODFFormControl
id string Control ID
Résultat AODL.Document.Forms.Controls.ODFFormControl

FindControlByName() public méthode

Looks for a specific control through all the forms by its name
public FindControlByName ( string name ) : ODFFormControl
name string
Résultat AODL.Document.Forms.Controls.ODFFormControl

GetNamespaceUri() public méthode

Return the namespaceuri for the given prefixname.
public GetNamespaceUri ( string prefix ) : string
prefix string The prefixname.
Résultat string

GetObjectByName() public méthode

public GetObjectByName ( string ObjectName ) : EmbedObject
ObjectName string
Résultat AODL.Document.Content.EmbedObjects.EmbedObject

Load() public méthode

Loads the document by using the specified importer.
public Load ( string file ) : void
file string The the file.
Résultat void

New() public méthode

Create a blank new document.
public New ( ) : TextDocument
Résultat TextDocument

SaveTo() public méthode

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!
Résultat void

SaveTo() public méthode

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
Résultat void

TextDocument() public méthode

Create a new TextDocument object.
public TextDocument ( ) : System
Résultat System