A collection of built-in document properties.
Provides access to DocumentProperty objects by their names (using an indexer) and via a set of typed properties that return values of appropriate types.
The names of the properties are case-insensitive.
The properties in the collection are sorted alphabetically by name.
Shows how to work with built-in document properties.
#include <Aspose.Words.Cpp/Properties/BuiltInDocumentProperties.h>
Public Member Functions | |
String | get_Author () |
Gets or sets the name of the document's author. More... | |
int32_t | get_Bytes () |
Represents an estimate of the number of bytes in the document. More... | |
String | get_Category () |
Gets or sets the category of the document. More... | |
int32_t | get_Characters () |
Represents an estimate of the number of characters in the document. More... | |
int32_t | get_CharactersWithSpaces () |
Represents an estimate of the number of characters (including spaces) in the document. More... | |
String | get_Comments () |
Gets or sets the document comments. More... | |
String | get_Company () |
Gets or sets the company property. More... | |
String | get_ContentStatus () |
Gets or sets the ContentStatus of the document. More... | |
String | get_ContentType () |
Gets or sets the ContentStatus of the document. More... | |
DateTime | get_CreatedTime () |
Gets or sets date of the document creation in UTC. More... | |
ArrayPtr< SharedPtr< Object > > | get_HeadingPairs () |
Specifies document headings and their names. More... | |
String | get_HyperlinkBase () |
Specifies the base string used for evaluating relative hyperlinks in this document. More... | |
String | get_Keywords () |
Gets or sets the document keywords. More... | |
DateTime | get_LastPrinted () |
Gets or sets the date when the document was last printed in UTC. More... | |
String | get_LastSavedBy () |
Gets or sets the name of the last author. More... | |
DateTime | get_LastSavedTime () |
Gets or sets the time of the last save in UTC. More... | |
int32_t | get_Lines () |
Represents an estimate of the number of lines in the document. More... | |
bool | get_LinksUpToDate () |
Indicates whether hyperlinks in a document are up-to-date. More... | |
String | get_Manager () |
Gets or sets the manager property. More... | |
String | get_NameOfApplication () |
Gets or sets the name of the application. More... | |
int32_t | get_Pages () |
Represents an estimate of the number of pages in the document. More... | |
int32_t | get_Paragraphs () |
Represents an estimate of the number of paragraphs in the document. More... | |
int32_t | get_RevisionNumber () |
Gets or sets the document revision number. More... | |
DocumentSecurity | get_Security () |
Specifies the security level of a document as a numeric value. More... | |
String | get_Subject () |
Gets or sets the subject of the document. More... | |
String | get_Template () |
Gets or sets the informational name of the document template. More... | |
ArrayPtr< uint8_t > | get_Thumbnail () |
Gets or sets the thumbnail of the document. More... | |
String | get_Title () |
Gets or sets the title of the document. More... | |
ArrayPtr< String > | get_TitlesOfParts () |
Each string in the array specifies the name of a part in the document. More... | |
int32_t | get_TotalEditingTime () |
Gets or sets the total editing time in minutes. More... | |
int32_t | get_Version () |
Represents the version number of the application that created the document. More... | |
int32_t | get_Words () |
Represents an estimate of the number of words in the document. More... | |
virtual const TypeInfo & | GetType () const override |
SharedPtr< DocumentProperty > | idx_get (String name) override |
Returns a DocumentProperty object by the name of the property. More... | |
virtual bool | Is (const TypeInfo &target) const override |
void | set_Author (const String &value) |
Setter for get_Author. More... | |
void | set_Bytes (int32_t value) |
Setter for get_Bytes. More... | |
void | set_Category (const String &value) |
Setter for get_Category. More... | |
void | set_Characters (int32_t value) |
Setter for get_Characters. More... | |
void | set_CharactersWithSpaces (int32_t value) |
Setter for get_CharactersWithSpaces. More... | |
void | set_Comments (const String &value) |
Setter for get_Comments. More... | |
void | set_Company (const String &value) |
Setter for get_Company. More... | |
void | set_ContentStatus (const String &value) |
Setter for get_ContentStatus. More... | |
void | set_ContentType (const String &value) |
Setter for get_ContentType. More... | |
void | set_CreatedTime (DateTime value) |
Setter for get_CreatedTime. More... | |
void | set_HeadingPairs (const ArrayPtr< SharedPtr< Object >> &value) |
Setter for get_HeadingPairs. More... | |
void | set_HyperlinkBase (const String &value) |
Setter for get_HyperlinkBase. More... | |
void | set_Keywords (const String &value) |
Setter for get_Keywords. More... | |
void | set_LastPrinted (DateTime value) |
Setter for get_LastPrinted. More... | |
void | set_LastSavedBy (const String &value) |
Setter for get_LastSavedBy. More... | |
void | set_LastSavedTime (DateTime value) |
Setter for get_LastSavedTime. More... | |
void | set_Lines (int32_t value) |
Setter for get_Lines. More... | |
void | set_LinksUpToDate (bool value) |
Setter for get_LinksUpToDate. More... | |
void | set_Manager (const String &value) |
Setter for get_Manager. More... | |
void | set_NameOfApplication (const String &value) |
Setter for get_NameOfApplication. More... | |
void | set_Pages (int32_t value) |
Setter for get_Pages. More... | |
void | set_Paragraphs (int32_t value) |
Setter for get_Paragraphs. More... | |
void | set_RevisionNumber (int32_t value) |
Setter for get_RevisionNumber. More... | |
void | set_Security (DocumentSecurity value) |
Setter for get_Security. More... | |
void | set_Subject (const String &value) |
Setter for get_Subject. More... | |
void | set_Template (const String &value) |
Setter for get_Template. More... | |
void | set_Thumbnail (const ArrayPtr< uint8_t > &value) |
Setter for get_Thumbnail. More... | |
void | set_Title (const String &value) |
Setter for get_Title. More... | |
void | set_TitlesOfParts (const ArrayPtr< String > &value) |
Setter for get_TitlesOfParts. More... | |
void | set_TotalEditingTime (int32_t value) |
Setter for get_TotalEditingTime. More... | |
void | set_Version (int32_t value) |
Setter for get_Version. More... | |
void | set_Words (int32_t value) |
Setter for get_Words. More... | |
![]() | |
void | Clear () |
Removes all properties from the collection. More... | |
bool | Contains (const String &name) |
Returns true if a property with the specified name exists in the collection. More... | |
int32_t | get_Count () |
Gets number of items in the collection. More... | |
SharedPtr< IEnumerator< SharedPtr< DocumentProperty > > > | GetEnumerator () override |
Returns an enumerator object that can be used to iterate over all items in the collection. More... | |
SharedPtr< DocumentProperty > | idx_get (int32_t index) |
Returns a DocumentProperty object by index. More... | |
int32_t | IndexOf (const String &name) |
Gets the index of a property by name. More... | |
void | Remove (const String &name) |
Removes a property with the specified name from the collection. More... | |
void | RemoveAt (int32_t index) |
Removes a property at the specified index. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
![]() | |
static const TypeInfo & | Type () |
System::String Aspose::Words::Properties::BuiltInDocumentProperties::get_Author | ( | ) |
Gets or sets the name of the document's author.
Shows how to work with built-in document properties in the "Description" category.
int32_t Aspose::Words::Properties::BuiltInDocumentProperties::get_Bytes | ( | ) |
Represents an estimate of the number of bytes in the document.
Microsoft Word does not always set this property.
Aspose.Words does not update this property.
Shows how to work with document properties in the "Content" category.
System::String Aspose::Words::Properties::BuiltInDocumentProperties::get_Category | ( | ) |
Gets or sets the category of the document.
Shows how to work with built-in document properties in the "Description" category.
int32_t Aspose::Words::Properties::BuiltInDocumentProperties::get_Characters | ( | ) |
Represents an estimate of the number of characters in the document.
Aspose.Words updates this property when you call UpdateWordCount.
Shows how to update all list labels in a document.
Shows how to work with document properties in the "Content" category.
int32_t Aspose::Words::Properties::BuiltInDocumentProperties::get_CharactersWithSpaces | ( | ) |
Represents an estimate of the number of characters (including spaces) in the document.
Aspose.Words updates this property when you call UpdateWordCount.
Shows how to work with document properties in the "Content" category.
System::String Aspose::Words::Properties::BuiltInDocumentProperties::get_Comments | ( | ) |
Gets or sets the document comments.
Shows how to work with built-in document properties in the "Description" category.
System::String Aspose::Words::Properties::BuiltInDocumentProperties::get_Company | ( | ) |
Gets or sets the company property.
Shows how to work with document properties in the "Origin" category.
System::String Aspose::Words::Properties::BuiltInDocumentProperties::get_ContentStatus | ( | ) |
Gets or sets the ContentStatus of the document.
Shows how to work with document properties in the "Content" category.
System::String Aspose::Words::Properties::BuiltInDocumentProperties::get_ContentType | ( | ) |
Gets or sets the ContentStatus of the document.
Shows how to work with document properties in the "Content" category.
System::DateTime Aspose::Words::Properties::BuiltInDocumentProperties::get_CreatedTime | ( | ) |
Gets or sets date of the document creation in UTC.
For documents originated from RTF format this property returns local time of the author's machine at the moment of document creation.
Aspose.Words does not update this property.
Shows how to work with document properties in the "Origin" category.
System::ArrayPtr<System::SharedPtr<System::Object> > Aspose::Words::Properties::BuiltInDocumentProperties::get_HeadingPairs | ( | ) |
Specifies document headings and their names.
Every heading pair occupies two elements in this array.
The first element of the pair is a String and specifies the heading name. The second element of the pair is an Int32 and specifies the count of document parts for this heading in the TitlesOfParts property.
The total sum of counts for all heading pairs in this property must be equal to the number of elements in the TitlesOfParts property.
Aspose.Words does not update this property.
Shows the relationship between "HeadingPairs" and "TitlesOfParts" properties.
System::String Aspose::Words::Properties::BuiltInDocumentProperties::get_HyperlinkBase | ( | ) |
Specifies the base string used for evaluating relative hyperlinks in this document.
Aspose.Words does not use this property.
Shows how to store the base part of a hyperlink in the document's properties.
System::String Aspose::Words::Properties::BuiltInDocumentProperties::get_Keywords | ( | ) |
Gets or sets the document keywords.
Shows how to work with built-in document properties in the "Description" category.
System::DateTime Aspose::Words::Properties::BuiltInDocumentProperties::get_LastPrinted | ( | ) |
Gets or sets the date when the document was last printed in UTC.
For documents originated from RTF format this property returns the local time of last print operation.
If the document was never printed, this property will return DateTime.MinValue.
Aspose.Words does not update this property.
Shows how to work with document properties in the "Origin" category.
System::String Aspose::Words::Properties::BuiltInDocumentProperties::get_LastSavedBy | ( | ) |
Gets or sets the name of the last author.
Aspose.Words does not update this property.
Shows how to work with document properties in the "Origin" category.
System::DateTime Aspose::Words::Properties::BuiltInDocumentProperties::get_LastSavedTime | ( | ) |
Gets or sets the time of the last save in UTC.
For documents originated from RTF format this property returns the local time of last save operation.
Aspose.Words does not update this property.
Shows how to work with document properties in the "Origin" category.
Shows how to use the SAVEDATE field to display the date/time of the document's most recent save operation performed using Microsoft Word.
int32_t Aspose::Words::Properties::BuiltInDocumentProperties::get_Lines | ( | ) |
Represents an estimate of the number of lines in the document.
Aspose.Words updates this property when you call UpdateWordCount().
Shows how to update all list labels in a document.
Shows how to work with document properties in the "Content" category.
bool Aspose::Words::Properties::BuiltInDocumentProperties::get_LinksUpToDate | ( | ) |
Indicates whether hyperlinks in a document are up-to-date.
Aspose.Words does not update this property.
Shows how to work with document properties in the "Content" category.
System::String Aspose::Words::Properties::BuiltInDocumentProperties::get_Manager | ( | ) |
Gets or sets the manager property.
Shows how to work with document properties in the "Origin" category.
System::String Aspose::Words::Properties::BuiltInDocumentProperties::get_NameOfApplication | ( | ) |
Gets or sets the name of the application.
Shows how to work with document properties in the "Origin" category.
int32_t Aspose::Words::Properties::BuiltInDocumentProperties::get_Pages | ( | ) |
Represents an estimate of the number of pages in the document.
Aspose.Words updates this property when you call UpdatePageLayout.
Shows how to work with document properties in the "Content" category.
int32_t Aspose::Words::Properties::BuiltInDocumentProperties::get_Paragraphs | ( | ) |
Represents an estimate of the number of paragraphs in the document.
Aspose.Words updates this property when you call UpdateWordCount.
Shows how to update all list labels in a document.
Shows how to work with document properties in the "Content" category.
int32_t Aspose::Words::Properties::BuiltInDocumentProperties::get_RevisionNumber | ( | ) |
Gets or sets the document revision number.
Aspose.Words does not update this property.
Shows how to work with document properties in the "Origin" category.
Shows how to work with REVNUM fields.
Aspose::Words::Properties::DocumentSecurity Aspose::Words::Properties::BuiltInDocumentProperties::get_Security | ( | ) |
Specifies the security level of a document as a numeric value.
Use this property for informational purposes only because Microsoft Word does not always set this property. This property is available in DOC and OOXML documents only.
To protect or unprotect a document use the Protect() and Unprotect methods.
Aspose.Words updates this property to a correct value before saving a document.
Shows how to use document properties to display the security level of a document.
System::String Aspose::Words::Properties::BuiltInDocumentProperties::get_Subject | ( | ) |
Gets or sets the subject of the document.
Shows how to work with built-in document properties in the "Description" category.
System::String Aspose::Words::Properties::BuiltInDocumentProperties::get_Template | ( | ) |
Gets or sets the informational name of the document template.
In Microsoft Word, this property is for informational purposes only and usually contains only the file name of the template without the path.
Empty string means the document is attached to the Normal template.
To get or set the actual name of the attached template, use the AttachedTemplate property.
Shows how to work with document properties in the "Origin" category.
System::ArrayPtr<uint8_t> Aspose::Words::Properties::BuiltInDocumentProperties::get_Thumbnail | ( | ) |
Gets or sets the thumbnail of the document.
For now this property is used only when a document is being exported to ePub, it's not read from and written to other document formats.
Image of arbitrary format can be set to this property, but the format is checked during export. InvalidOperationException is thrown if the image is invalid or its format is unsupported for specific format of document.
Only gif, jpeg and png images can be used for ePub publication.
Shows how to add a thumbnail to a document that we save as an Epub.
System::String Aspose::Words::Properties::BuiltInDocumentProperties::get_Title | ( | ) |
Gets or sets the title of the document.
Shows how to work with built-in document properties in the "Description" category.
System::ArrayPtr<System::String> Aspose::Words::Properties::BuiltInDocumentProperties::get_TitlesOfParts | ( | ) |
Each string in the array specifies the name of a part in the document.
Aspose.Words does not update this property.
Shows the relationship between "HeadingPairs" and "TitlesOfParts" properties.
int32_t Aspose::Words::Properties::BuiltInDocumentProperties::get_TotalEditingTime | ( | ) |
Gets or sets the total editing time in minutes.
Shows how to work with document properties in the "Origin" category.
int32_t Aspose::Words::Properties::BuiltInDocumentProperties::get_Version | ( | ) |
Represents the version number of the application that created the document.
When a document was created by Microsoft Word, then high 16 bit represent the major version and low 16 bit represent the build number.
Shows how to work with document properties in the "Origin" category.
int32_t Aspose::Words::Properties::BuiltInDocumentProperties::get_Words | ( | ) |
Represents an estimate of the number of words in the document.
Aspose.Words updates this property when you call UpdateWordCount.
Shows how to update all list labels in a document.
Shows how to work with document properties in the "Content" category.
|
overridevirtual |
Reimplemented from Aspose::Words::Properties::DocumentPropertyCollection.
|
overridevirtual |
Returns a DocumentProperty object by the name of the property.
The string names of the properties correspond to the names of the typed properties available from BuiltInDocumentProperties.
If you request a property that is not present in the document, but the name of the property is recognized as a valid built-in name, a new DocumentProperty is created, added to the collection and returned. The newly created property is assigned a default value (empty string, zero, false or DateTime.MinValue depending on the type of the built-in property).
If you request a property that is not present in the document and the name is not recognized as a built-in name, a null is returned.
name | The case-insensitive name of the property to retrieve. |
Shows how to work with custom document properties.
Reimplemented from Aspose::Words::Properties::DocumentPropertyCollection.
|
overridevirtual |
Reimplemented from Aspose::Words::Properties::DocumentPropertyCollection.
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Author | ( | const System::String & | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Bytes | ( | int32_t | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Category | ( | const System::String & | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Characters | ( | int32_t | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_CharactersWithSpaces | ( | int32_t | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Comments | ( | const System::String & | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Company | ( | const System::String & | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_ContentStatus | ( | const System::String & | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_ContentType | ( | const System::String & | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_CreatedTime | ( | System::DateTime | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_HeadingPairs | ( | const System::ArrayPtr< System::SharedPtr< System::Object >> & | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_HyperlinkBase | ( | const System::String & | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Keywords | ( | const System::String & | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_LastPrinted | ( | System::DateTime | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_LastSavedBy | ( | const System::String & | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_LastSavedTime | ( | System::DateTime | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Lines | ( | int32_t | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_LinksUpToDate | ( | bool | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Manager | ( | const System::String & | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_NameOfApplication | ( | const System::String & | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Pages | ( | int32_t | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Paragraphs | ( | int32_t | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_RevisionNumber | ( | int32_t | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Security | ( | Aspose::Words::Properties::DocumentSecurity | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Subject | ( | const System::String & | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Template | ( | const System::String & | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Thumbnail | ( | const System::ArrayPtr< uint8_t > & | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Title | ( | const System::String & | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_TitlesOfParts | ( | const System::ArrayPtr< System::String > & | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_TotalEditingTime | ( | int32_t | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Version | ( | int32_t | value | ) |
void Aspose::Words::Properties::BuiltInDocumentProperties::set_Words | ( | int32_t | value | ) |
|
static |