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 A enum element from WidthType that specifies the units of measurement for the Value.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
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.
 float getValue()
          An double value that specifies the preferred width
 int hashCode()
           
 

Constructor Detail

PreferredWidth

public PreferredWidth(WidthType type,
                      short value)
Create a new PreferredWidth object 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).

Parameters:
-
value - An short value that specifies the preferred width
Method Detail

getValue

public float getValue()
An double value that specifies the preferred width


getType

public WidthType getType()
A enum element from WidthType that specifies the units of measurement for the Value.


getAuto

public static PreferredWidth getAuto()
Get an instance of PreferredWidth, this instance indicates thie preferred width is auto.


getNone

public static PreferredWidth getNone()
Get an instance of PreferredWidth, this instance indicates thie preferred width is not specified.


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object