documentproperty-ag凯发旗舰厅



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()
          default constructor.
documentproperty(java.lang.string strname, java.lang.object value)
          initializes new instance of the class.
documentproperty(java.lang.string strname, java.lang.object value, propertytype type)
          initializes new instance of the class.
 
method summary
 documentproperty deepclone()
          creates a new object that is a copy of the current instance.
 clipboarddata getclipboarddata()
          gets clipboard data value.
 java.lang.string getname()
          returns property name.
 java.lang.object getvalue()
          gets the property value.
 propertyvaluetype getvaluetype()
          gets the type of the value.
 void setclipboarddata(clipboarddata value)
          sets clipboard data value.
 void setvalue(java.lang.object value)
          sets the property value.
 boolean tobool()
          to the bool.
 byte[] tobytearray()
          convert the object as byte array.
 java.util.date 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 string that represents the current object.
 
constructor detail

documentproperty

public documentproperty()
default constructor.

documentproperty

public documentproperty(java.lang.string strname,
                        java.lang.object value)
initializes new instance of the class.
parameters:
strname - property name.
value - property value.<

documentproperty

public documentproperty(java.lang.string strname,
                        java.lang.object value,
                        propertytype type)
initializes new instance of the class.
parameters:
strname - property name.
value - property value.
type - property type
method detail

getname

public java.lang.string getname()
returns property name. read-only.
returns:
the property name

getvalue

public java.lang.object getvalue()
gets the property value.
returns:
the property valye

setvalue

public void setvalue(java.lang.object value)
sets the property value.
parameters:
value - the property value

getvaluetype

public propertyvaluetype getvaluetype()
gets the type of the value.
returns:
the type of the value.

getclipboarddata

public clipboarddata getclipboarddata()
gets clipboard data value.
returns:
the clipboard data value.

setclipboarddata

public void setclipboarddata(clipboarddata value)
sets clipboard data value.
parameters:
value - the clipboard data value.

tobool

public boolean tobool()
to the bool.
returns:
the boolean

todatetime

public java.util.date todatetime()
convert the object in datetime.
returns:
the date

tofloat

public float tofloat()
convert the object in float value.
returns:
the float value

todouble

public double todouble()
convert the object in double.
returns:
the double value

toint

public int toint()
convert the object in int value.
returns:
the int value

tostring

public java.lang.string tostring()
returns a string that represents the current object.
overrides:
tostring in class java.lang.object
returns:
the string that represents the current object.

tobytearray

public byte[] tobytearray()
convert the object as byte array.
returns:
the object as byte array.

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.


网站地图