Aspose::Cells::Metadata::IWorkbookMetadata Class Referenceabstract

Represents the meta data. More...

Inherits Object.

Public Member Functions

virtual intrusive_ptr< Aspose::Cells::Metadata::IMetadataOptionsGetIOptions ()=0
 Gets the options of the metadata. More...
 
virtual intrusive_ptr< Aspose::Cells::Properties::IBuiltInDocumentPropertyCollectionGetIBuiltInDocumentProperties ()=0
 Returns a DocumentProperties collection that represents all the built-in document properties of the spreadsheet. More...
 
virtual intrusive_ptr< Aspose::Cells::Properties::ICustomDocumentPropertyCollectionGetICustomDocumentProperties ()=0
 Returns a DocumentProperties collection that represents all the custom document properties of the spreadsheet. More...
 
virtual void Save (intrusive_ptr< Aspose::Cells::Systems::String > fileName)=0
 Save the modified metadata to the file. More...
 
virtual void Save (intrusive_ptr< Aspose::Cells::Systems::IO::Stream > stream)=0
 Save the modified metadata to the stream. More...
 

Detailed Description

Represents the meta data.

The following example creates an IWorkbookMetadata.

[C++]
intrusive_ptr<IMetadataOptions> options = Factory::CreateIMetadataOptions(MetadataType_DocumentProperties);
intrusive_ptr<IWorkbookMetadata> meta = Factory::CreateIWorkbookMetadata(new String("book1.xlsx"), options);
meta->GetICustomDocumentProperties()->AddIDocumentProperty(new String("test"), (StringPtr)new String("test"));
meta->Save(new String("book2.xlsx"));

Member Function Documentation

◆ GetIBuiltInDocumentProperties()

virtual intrusive_ptr<Aspose::Cells::Properties::IBuiltInDocumentPropertyCollection> Aspose::Cells::Metadata::IWorkbookMetadata::GetIBuiltInDocumentProperties ( )
pure virtual

Returns a DocumentProperties collection that represents all the built-in document properties of the spreadsheet.

◆ GetICustomDocumentProperties()

virtual intrusive_ptr<Aspose::Cells::Properties::ICustomDocumentPropertyCollection> Aspose::Cells::Metadata::IWorkbookMetadata::GetICustomDocumentProperties ( )
pure virtual

Returns a DocumentProperties collection that represents all the custom document properties of the spreadsheet.

◆ GetIOptions()

virtual intrusive_ptr<Aspose::Cells::Metadata::IMetadataOptions> Aspose::Cells::Metadata::IWorkbookMetadata::GetIOptions ( )
pure virtual

Gets the options of the metadata.

◆ Save() [1/2]

virtual void Aspose::Cells::Metadata::IWorkbookMetadata::Save ( intrusive_ptr< Aspose::Cells::Systems::String >  fileName)
pure virtual

Save the modified metadata to the file.

Parameters
fileNameThe file name.

◆ Save() [2/2]

virtual void Aspose::Cells::Metadata::IWorkbookMetadata::Save ( intrusive_ptr< Aspose::Cells::Systems::IO::Stream >  stream)
pure virtual

Save the modified metadata to the stream.

Parameters
streamThe stream.