IWorkNumbersDocument
OfficeIMO.IWork
Creates template-free native Numbers spreadsheets with positioned scalar tables.
Inheritance
- object
- IWorkNumbersDocument
Remarks
Instances are not thread safe. This creation model does not edit loaded packages or author formulas.
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Method IWorkNumbersDocument.Create
Methods
public IWorkNumbersSheetBuilder AddSheet(string name) #Adds a sheet with a unique name, compared without case.
Parameters
- name string
Returns
IWorkNumbersSheetBuilderpublic static IWorkNumbersDocument Create() #Creates an empty spreadsheet. Add at least one sheet and a table to each sheet before saving.
Returns
IWorkNumbersDocumentpublic static IWorkNumbersDocument Create(string path) #Creates a native authoring model associated with a path, without writing a file.
Parameters
- path string
Returns
IWorkNumbersDocumentpublic void Dispose() #Completes this managed authoring model's lifetime. No native application, file or caller stream is retained.
public void Save(Stream destination, IWorkNumbersSaveOptions? options = null, CancellationToken cancellationToken = default) #Writes a completed package at the stream's current position and leaves the stream open.
Parameters
- destination System.IO.Stream
- options OfficeIMO.IWork.IWorkNumbersSaveOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public void Save(string path, bool overwrite = false, IWorkNumbersSaveOptions? options = null, CancellationToken cancellationToken = default) #Atomically saves a native package, rejecting an existing file unless overwrite is enabled.
Parameters
- path string
- overwrite bool = false
- options OfficeIMO.IWork.IWorkNumbersSaveOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public void Save(bool overwrite = false, IWorkNumbersSaveOptions? options = null, CancellationToken cancellationToken = default) #Saves to the associated path; replacing an existing file still requires explicit overwrite.
Parameters
- overwrite bool = false
- options OfficeIMO.IWork.IWorkNumbersSaveOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public byte[] ToBytes(IWorkNumbersSaveOptions? options = null, CancellationToken cancellationToken = default) #Encodes a deterministic native Numbers package without a template or native application.
Parameters
- options OfficeIMO.IWork.IWorkNumbersSaveOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
byte[]