OpenDocumentSpreadsheetSaveOptions.DocumentProperties Property
- Namespace
TXTextControl.TXSheetControl. Server
- Package
TXTextControl.asTXSheetControl. Server TXTextControl.from the private NuGet feed or the supplied NuGet folderTXSheetControl. Api. dll
- Also in
TXTextControl.asTXSheetControl. Blazor TXTextControl.TXSheetControl. Api. dll
Export-only document metadata overrides.
Syntax
public DocumentProperties? DocumentProperties { get; init; }
Example
The application owns the licensed control and supplies inputBytes for loading.
using TXTextControl.TXSheetControl.Server;
var options = new OpenDocumentSpreadsheetSaveOptions { DocumentProperties = new() { Title = "Orders" } };
var bytes = await control.SaveAsync(StreamType.OpenDocumentSpreadsheet, new SaveOptions { OpenDocumentSpreadsheet = options });