preferredwidth-ag凯发旗舰厅



com.spire.doc
class preferredwidth

java.lang.object
  extended by com.spire.doc.preferredwidth

public class preferredwidth
extends java.lang.object

an preferredwidth class that specifies the preferred total width of the table of which this row is a part.


constructor summary
preferredwidth(widthtype type, short value)
          create a new preferredwidth object
 
method summary
static preferredwidth getauto()
          get an instance of preferredwidth, this instance indicates thie preferred width is auto.
static preferredwidth getnone()
          get an instance of preferredwidth, this instance indicates thie preferred width is not specified.
 widthtype gettype()
          a enum element from widthtype that specifies the units of measurement for the value.
 short getvalue()
          an short value that specifies the preferred width
 
constructor detail

preferredwidth

public preferredwidth(widthtype type,
                      short value)
create a new preferredwidth object
parameters:
type - a enum element from widthtype that specifies the units of measurement for the value. if type is auto or none, the value must be 0, if type is percentage, the value must be non-negative and less than or equal to 600, if type is twip, the value must be non-negative and and less than or equal to 31,680 (22 inches).
value - an short value that specifies the preferred width
method detail

getvalue

public short getvalue()
an short value that specifies the preferred width
returns:
value

gettype

public widthtype gettype()
a enum element from widthtype that specifies the units of measurement for the value.
returns:
short

getauto

public static preferredwidth getauto()
get an instance of preferredwidth, this instance indicates thie preferred width is auto.
returns:
preferredwidth

getnone

public static preferredwidth getnone()
get an instance of preferredwidth, this instance indicates thie preferred width is not specified.
returns:
preferredwidth


网站地图