DocumentProperty Class |
Namespace: Aspose.Words.Properties
The DocumentProperty type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | IsLinkToContent |
Shows whether this property is linked to content or not.
|
![]() ![]() | LinkSource |
Gets the source of a linked custom document property.
|
![]() ![]() | Name |
Returns the name of the property.
|
![]() ![]() | Type |
Gets the data type of the property.
|
![]() ![]() | Value |
Gets or sets the value of the property.
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() ![]() | ToBool |
Returns the property value as bool.
|
![]() ![]() | ToByteArray |
Returns the property value as byte array.
|
![]() ![]() | ToDateTime |
Returns the property value as DateTime in UTC.
|
![]() ![]() | ToDouble |
Returns the property value as double.
|
![]() ![]() | ToInt |
Returns the property value as integer.
|
![]() ![]() | ToString |
Returns the property value as a string formatted according to the current locale.
(Overrides ObjectToString.) |
Document doc = new Document(MyDir + "Properties.docx"); Console.WriteLine("1. Document name: {0}", doc.OriginalFileName); Console.WriteLine("2. Built-in Properties"); for (int i = 0; i < doc.BuiltInDocumentProperties.Count; i++) { DocumentProperty docProperty = doc.BuiltInDocumentProperties[i]; Console.WriteLine("{0}({1}) : {2}", docProperty.Name, docProperty.Type, docProperty.Value); } Console.WriteLine("3. Custom Properties"); for (int i = 0; i < doc.CustomDocumentProperties.Count; i++) { DocumentProperty docProperty = doc.CustomDocumentProperties[i]; Console.WriteLine("{0}({1}) : {2}", docProperty.Name, docProperty.Type, docProperty.Value); }