C# 클래스 AODL.Document.TextDocuments.TextDocument

Represent a opendocument text document.
상속: IDisposable, IDocument
파일 보기 프로젝트 열기: monsterlabs/HumanRightsTracker 1 사용 예제들

공개 메소드들

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