Aspose::Cells::Metadata::WorkbookMetadata class
Contents
[
Hide
]WorkbookMetadata class
Represents the meta data.
class WorkbookMetadata
Methods
Method | Description |
---|---|
GetBuiltInDocumentProperties() | Returns a DocumentProperty collection that represents all the built-in document properties of the spreadsheet. |
GetCustomDocumentProperties() | Returns a DocumentProperty collection that represents all the custom document properties of the spreadsheet. |
GetOptions() | Gets the options of the metadata. |
IsNull() const | Checks whether the implementation object is nullptr. |
explicit operator bool() const | operator bool() |
operator=(const WorkbookMetadata& src) | operator= |
Save(const U16String& fileName) | Save the modified metadata to the file. |
Save(const char16_t* fileName) | Save the modified metadata to the file. |
Save(const Vector <uint8_t>& stream) | Save the modified metadata to the stream. |
WorkbookMetadata(const U16String& fileName, const MetadataOptions& options) | Create the meta data object. |
WorkbookMetadata(const char16_t* fileName, const MetadataOptions& options) | Create the meta data object. |
WorkbookMetadata(const Vector <uint8_t>& stream, const MetadataOptions& options) | Create the meta data object. |
WorkbookMetadata(WorkbookMetadata_Impl* impl) | Constructs from an implementation object. |
WorkbookMetadata(const WorkbookMetadata& src) | Copy constructor. |
~WorkbookMetadata() | Destructor. |
Fields
Field | Description |
---|---|
_impl | The implementation object. |
Examples
Aspose::Cells::Startup();
//The following example creates a WorkbookMetadata.
MetadataOptions options(MetadataType::Document_Properties);
WorkbookMetadata meta(u"book1.xlsx", options);
meta.GetCustomDocumentProperties().Add(u"test", u"test");
meta.Save(u"book2.xlsx");
Aspose::Cells::Cleanup();
See Also
- Namespace Aspose::Cells::Metadata
- Library Aspose.Cells for C++