DocumentProperty

DocumentProperty

Overview

DocumentProperty is a class in Aspose.Words FOSS for Java. Inherits from: Cloneable.

Represents a custom or built-in document property.

Edition status of its 17 listed members (a property and its accessor methods are listed separately, overloads once): 17 not yet exercised by a verified example.

This class declares 12 methods for DocumentProperty objects in Java programs. Available methods include: getLinkSource, getName, getType, getValue, isLinkToContent, setValue, toBool, toByteArray, toDateTime, toDouble, toInt, toString. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: linkSource, linkToContent, name, type, value.

Properties

NameTypeAccessDescription
nameStringReadReturns the name of the property.
valueObjectRead/WriteGets or sets the value of the property.
typeintReadGets the type.
linkSourceStringReadGets the source of a linked custom document property.
linkToContentbooleanReadShows whether this property is linked to content or not.

Methods

SignatureDescription
getName() → StringReturns the name of the property.
getValue() → ObjectGets or sets the value of the property.
setValue(value: Object)Sets the value value.
getType() → intReturns the type.
getLinkSource() → StringGets the source of a linked custom document property.
isLinkToContent() → booleanShows whether this property is linked to content or not.
toString() → StringReturns the property value as a string formatted according to the current locale.
toInt() → intReturns the property value as integer.
toDouble() → doubleReturns the property value as double.
toDateTime() → java.util.DateCalls toDateTime on this DocumentProperty instance.
toBool() → booleanReturns the property value as bool.
toByteArray() → byte[]Returns the property value as byte array.

See Also