DocumentProperty
Overview
DocumentProperty is a class in Aspose.Words FOSS for .NET.
Represents a custom or built-in document property.
This class provides 6 methods for working with DocumentProperty objects in .NET programs.
Available methods include: ToBool, ToByteArray, ToDateTime, ToDouble, ToInt, ToString.
All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package.
Properties: IsLinkToContent, LinkSource, Name, Type, Value.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Name | string | Read | Returns the name of the property. |
Value | object | Read/Write | Gets or sets the value of the property. |
Type | PropertyType | Read | Gets the data type of the property. |
LinkSource | string | Read | Gets the source of a linked custom document property. |
IsLinkToContent | bool | Read | Shows whether this property is linked to content or not. |
Methods
| Signature | Description |
|---|---|
ToString() | Returns the property value as a string formatted according to the current locale. |
ToInt() | Returns the property value as integer. |
ToDouble() | Returns the property value as double. |
ToDateTime() | Returns the property value as DateTime in UTC. |
ToBool() | Returns the property value as bool. |
ToByteArray() | Returns the property value as byte array. |