mergefieldeventargs-ag凯发旗舰厅



com.spire.doc.reporting
class mergefieldeventargs

java.lang.object
  extended by com.spire.ms.system.eventargs
      extended by com.spire.doc.reporting.mergefieldeventargs
direct known subclasses:
mergeimagefieldeventargs

public class mergefieldeventargs
extends com.spire.ms.system.eventargs

represents data during mergefield event.


constructor summary
mergefieldeventargs(idocument doc, java.lang.string tablename, int rowindex, imergefield field, java.lang.object value)
          provides data during the mergefield event.
 
method summary
 characterformat getcharacterformat()
          gets the character format of the field.
 imergefield getcurrentmergefield()
          gets the current merge field.
 idocument getdocument()
          gets the document.
 java.lang.string getfieldname()
          gets the merge field name.
 java.lang.object getfieldvalue()
          gets the merge field value
 int getrowindex()
          gets the row index.
 java.lang.string gettablename()
          gets the table name
 java.lang.string gettext()
          gets the text value
 boolean iskeeptextformat()
          gets is keep text formatting.
 void iskeeptextformat(boolean value)
          sets is keep text formatting.
 void settext(java.lang.string value)
          sets the text value
 
constructor detail

mergefieldeventargs

public mergefieldeventargs(idocument doc,
                           java.lang.string tablename,
                           int rowindex,
                           imergefield field,
                           java.lang.object value)
provides data during the mergefield event.
parameters:
doc - doc
tablename - tablename
rowindex - rowindex
field - field
value - object
method detail

getdocument

public idocument getdocument()
gets the document.
returns:
the document

getfieldname

public java.lang.string getfieldname()
gets the merge field name.
returns:
the field name

getfieldvalue

public java.lang.object getfieldvalue()
gets the merge field value
returns:
the field value

gettablename

public java.lang.string gettablename()
gets the table name
returns:
the table name

getrowindex

public int getrowindex()
gets the row index.
returns:
the row index

getcharacterformat

public characterformat getcharacterformat()
gets the character format of the field.
returns:
the character format

gettext

public java.lang.string gettext()
gets the text value
returns:
the text

settext

public void settext(java.lang.string value)
sets the text value
parameters:
value - the text

getcurrentmergefield

public imergefield getcurrentmergefield()
gets the current merge field.
returns:
the current merge field

iskeeptextformat

public boolean iskeeptextformat()
gets is keep text formatting.
returns:
keep the text format or not

iskeeptextformat

public void iskeeptextformat(boolean value)
sets is keep text formatting.
parameters:
value - keep the text format or not


网站地图