Class WorkbookMetadata
Namespace: Aspose.Cells.Metadata
Assembly: Aspose.Cells.dll (25.2.0)
Represents the meta data.
public class WorkbookMetadata
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Examples
The following example creates a WorkbookMetadata.
csharp
[C#]
MetadataOptions options = new MetadataOptions(MetadataType.DocumentProperties);
WorkbookMetadata meta = new WorkbookMetadata("book1.xlsx", options);
meta.CustomDocumentProperties.Add("test", "test");
meta.Save("book2.xlsx");
Constructors
WorkbookMetadata(string, MetadataOptions)
Create the meta data object.
public WorkbookMetadata(string fileName, MetadataOptions options)
Parameters
fileName
string
options
MetadataOptions
WorkbookMetadata(Stream, MetadataOptions)
Create the meta data object.
public WorkbookMetadata(Stream stream, MetadataOptions options)
Parameters
stream
Stream
options
MetadataOptions
Properties
BuiltInDocumentProperties
Returns a Aspose.Cells.Properties.DocumentProperty collection that represents all the built-in document properties of the spreadsheet.
public BuiltInDocumentPropertyCollection BuiltInDocumentProperties { get; }
Property Value
BuiltInDocumentPropertyCollection
CustomDocumentProperties
Returns a Aspose.Cells.Properties.DocumentProperty collection that represents all the custom document properties of the spreadsheet.
public CustomDocumentPropertyCollection CustomDocumentProperties { get; }
Property Value
CustomDocumentPropertyCollection
Options
Gets the options of the metadata.
public MetadataOptions Options { get; }
Property Value
Methods
Save(string)
Save the modified metadata to the file.
public void Save(string fileName)
Parameters
fileName
string
The file name.
Save(Stream)
Save the modified metadata to the stream.
public void Save(Stream stream)
Parameters
stream
Stream
The stream.