DocumentProperty

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

NameTypeAccessDescription
NamestringReadReturns the name of the property.
ValueobjectRead/WriteGets or sets the value of the property.
TypePropertyTypeReadGets the data type of the property.
LinkSourcestringReadGets the source of a linked custom document property.
IsLinkToContentboolReadShows whether this property is linked to content or not.

Methods

SignatureDescription
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.

See Also