C# Класс AODL.Document.SpreadsheetDocuments.SpreadsheetDocument

The SpreadsheetDocument class represent an OpenDocument spreadsheet document.
Наследование: IDocument, IDisposable
Показать файл Открыть проект Примеры использования класса

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

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

GetNamespaceUri ( string prefix ) : string

Return the namespaceuri for the given prefixname.

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

Load the given file.

New ( ) : void

Create a new blank spreadsheet document.

SaveTo ( string filename ) : void

Save the SpreadsheetDocument as OpenDocument spreadsheet document

SaveTo ( string filename, IExporter iExporter ) : void

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

SpreadsheetDocument ( ) : System

Initializes a new instance of the SpreadsheetDocument class.

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

Метод Описание
Content_Inserted ( int index, object value ) : void

Content_s the inserted.

Content_Removed ( int index, object value ) : void

Content_s the removed.

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.

LoadBlankContent ( ) : void

Load a blank the spreadsheet content document.

ReadCommonStyles ( ) : void

Reads the common styles.

StyleNodeExists ( string styleName ) : bool

Styles the node exists.

TableCollection_Inserted ( int index, object value ) : void

Tables the collection_ inserted.

TableCollection_Removed ( int index, object value ) : void

Tables the collection_ removed.

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

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

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() публичный Метод

Load the given file.
public Load ( string file ) : void
file string
Результат void

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

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

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

Save the SpreadsheetDocument as OpenDocument spreadsheet document
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

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

Initializes a new instance of the SpreadsheetDocument class.
public SpreadsheetDocument ( ) : System
Результат System