API Reference
IWorkNumbersDocument
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) #IWorkNumbersSheetBuilderAdds a sheet with a unique name, compared without case.
Parameters
- name System.String
public static IWorkNumbersDocument Create() #IWorkNumbersDocumentCreates an empty spreadsheet. Add at least one sheet and a table to each sheet before saving.
public Void Save(Stream destination, IWorkNumbersWriteOptions? options = null, CancellationToken cancellationToken = default) #VoidWrites a completed package at the stream's current position and leaves the stream open.
Parameters
- destination System.IO.Stream
- options OfficeIMO.IWork.IWorkNumbersWriteOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public Void Save(String path, Boolean overwrite = false, IWorkNumbersWriteOptions? options = null, CancellationToken cancellationToken = default) #VoidAtomically saves a native package, rejecting an existing file unless overwrite is enabled.
Parameters
- path System.String
- overwrite System.Boolean = false
- options OfficeIMO.IWork.IWorkNumbersWriteOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public Byte[] SaveBytes(IWorkNumbersWriteOptions? options = null, CancellationToken cancellationToken = default) #Byte[]Encodes a deterministic native Numbers package without a template or native application.
Parameters
- options OfficeIMO.IWork.IWorkNumbersWriteOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public IReadOnlyList<IWorkNumbersSheetBuilder> Sheets { get; } #Gets sheets in insertion order.