|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.barcode.MarginsF
public class MarginsF
Specifies the margins of a barcode image.
This class is used to manipulate margins in barcode image.
Note: The actual amount of the margins are determined by the specified mesure System.Drawing.GraphicsUnitunit
of the barcode image.
MarginsFConverterMarginsFConverter
is the type descriptor for this class.
MarginsF.LeftLeft
, MarginsF.RightRight
, MarginsF.TopTop
, and MarginsF.BottomBottom
are properties that define the margins.
MarginsF.EqualsEquals
determines if another object is equal to a MarginsF object.
Constructor Summary | |
---|---|
MarginsF()
Initialize a new instance of MarginsFMarginsF class with 0 margins. |
|
MarginsF(float left,
float right,
float top,
float bottom)
Initialize a new instance of MarginsFMarginsF class with specified left, right, top, bottom marigns. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Determines whether two MarginsFMarginsF instances are equal. |
float |
getBottom()
Gets or sets the bottom marign. |
float |
getLeft()
Gets or sets the left margin. |
float |
getRight()
Gets or sets the right margin. |
float |
getTop()
Gets or sets the top marign. |
int |
hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
void |
setBottom(float value)
|
void |
setLeft(float value)
|
void |
setRight(float value)
|
void |
setTop(float value)
|
String |
toString()
Returns a String that represents the current MarginsFMarginsF instance. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MarginsF()
Initialize a new instance of MarginsFMarginsF
class with 0 margins.
public MarginsF(float left, float right, float top, float bottom)
Initialize a new instance of MarginsFMarginsF
class with specified left, right, top, bottom marigns.
left
- The Left marign.right
- The right marign.top
- The top marign.bottom
- The bottom marign.
com.aspose.ms.System.IllegalArgumentException
- <p>The left parameter value is less than 0.</p>
<p>-or-</p>
<p>The right parameter value is less than 0.</p>
<p>-or-</p>
<p>The top parameter value is less than 0.</p>
<p>-or-</p>
<p>The bottom parameter value is less than 0.</p>
Method Detail |
---|
public boolean equals(Object obj)
Determines whether two MarginsFMarginsF
instances are equal.
equals
in class Object
obj
- The MarginsFMarginsF
instance on the left
MarginsFMarginsF
instances is equal to the right one; otherwise, false.public int hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
hashCode
in class Object
public String toString()
Returns a String that represents the current MarginsFMarginsF
instance.
toString
in class Object
System.StringString
that represents the current Object.public float getBottom()
Gets or sets the bottom marign.
com.aspose.ms.System.IllegalArgumentException
- <p>The <b>bottom</b> parameter value is less than 0.</p>
public void setBottom(float value)
public float getLeft()
Gets or sets the left margin.
com.aspose.ms.System.IllegalArgumentException
- <p>The <b>Left</b> parameter value is less than 0.</p>
public void setLeft(float value)
public float getRight()
Gets or sets the right margin.
com.aspose.ms.System.IllegalArgumentException
- <p>The <b>Right</b> parameter value is less than 0.</p>
public void setRight(float value)
public float getTop()
Gets or sets the top marign.
com.aspose.ms.System.IllegalArgumentException
- <p>The <b>Top</b> parameter value is less than 0.</p>
public void setTop(float value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |