Class WorkbookMetadata

WorkbookMetadata class

Represents the meta data.

public class WorkbookMetadata

Constructors

NameDescription
WorkbookMetadata(Stream, MetadataOptions)Create the meta data object.
WorkbookMetadata(string, MetadataOptions)Create the meta data object.

Properties

NameDescription
BuiltInDocumentProperties { get; }Returns a DocumentProperty collection that represents all the built-in document properties of the spreadsheet.
CustomDocumentProperties { get; }Returns a DocumentProperty collection that represents all the custom document properties of the spreadsheet.
Options { get; }Gets the options of the metadata.

Methods

NameDescription
Save(Stream)Save the modified metadata to the stream.
Save(string)Save the modified metadata to the file.

Examples

The following example creates a WorkbookMetadata.

[C#]
  MetadataOptions options = new MetadataOptions(MetadataType.DocumentProperties);
  WorkbookMetadata meta = new WorkbookMetadata("book1.xlsx", options);
  meta.CustomDocumentProperties.Add("test", "test");
  meta.Save("book2.xlsx");

See Also