com.spire.doc
Class DocumentProperty

java.lang.Object
  extended by com.spire.doc.DocumentProperty

public class DocumentProperty
extends java.lang.Object

Summary description for DocumentProperty.


Constructor Summary
DocumentProperty()
           
DocumentProperty(java.lang.String strName, java.lang.Object value)
           
DocumentProperty(java.lang.String strName, java.lang.Object value, PropertyType type)
           
 
Method Summary
 DocumentProperty deepClone()
          Creates a new object that is a copy of the current instance.
 ClipboardData getClipboardData()
          Gets or sets clipboard data value.
 java.lang.String getName()
          Returns property name.
 java.lang.Object getValue()
          Gets / sets the property value.
 PropertyValueType getValueType()
          Gets the type of the value.
 void setClipboardData(ClipboardData value)
          Gets or sets clipboard data value.
 void setValue(java.lang.Object value)
          Gets / sets the property value.
 boolean toBool()
          To the bool.
 byte[] toByteArray()
          Convert the object as byte array.
 com.spire.ms.System.DateTime toDateTime()
          Convert the object in DateTime.
 double toDouble()
          Convert the object in double.
 float toFloat()
          Convert the object in float value.
 int toInt()
          Convert the object in Int value.
 java.lang.String toString()
          Returns a that represents the current .
 

Constructor Detail

DocumentProperty

public DocumentProperty()

DocumentProperty

public DocumentProperty(java.lang.String strName,
                        java.lang.Object value)

DocumentProperty

public DocumentProperty(java.lang.String strName,
                        java.lang.Object value,
                        PropertyType type)
Method Detail

getName

public java.lang.String getName()
Returns property name. Read-only.


getValue

public java.lang.Object getValue()
Gets / sets the property value.


setValue

public void setValue(java.lang.Object value)
Gets / sets the property value.


getValueType

public PropertyValueType getValueType()
Gets the type of the value.

Returns:
The type of the value.

getClipboardData

public ClipboardData getClipboardData()
Gets or sets clipboard data value.


setClipboardData

public void setClipboardData(ClipboardData value)
Gets or sets clipboard data value.


toBool

public boolean toBool()
To the bool.

Returns:

toDateTime

public com.spire.ms.System.DateTime toDateTime()
Convert the object in DateTime.

Returns:

toFloat

public float toFloat()
Convert the object in float value.

Returns:

toDouble

public double toDouble()
Convert the object in double.

Returns:

toInt

public int toInt()
Convert the object in Int value.

Returns:

toString

public java.lang.String toString()
Returns a that represents the current . A that represents the current .

Overrides:
toString in class java.lang.Object
Returns:

toByteArray

public byte[] toByteArray()
Convert the object as byte array.

Returns:

deepClone

public DocumentProperty deepClone()
Creates a new object that is a copy of the current instance.

Returns:
A new object that is a copy of this instance.