public class MarginsF
extends java.lang.Object
Specifies the margins of a com.aspose.barcode image.
<p>This class is used to manipulate margins in com.aspose.barcode image.</p>
<p><b><I>Note</I></b>: The actual amount of the margins are determined by the specified mesure {@code System.Drawing.GraphicsUnitunit} of the com.aspose.barcode image.</p>
<p>{@code MarginsFConverterMarginsFConverter} is the type descriptor for this class.</p>
<p>{@code MarginsF.LeftLeft}, {@code MarginsF.RightRight}, {@code MarginsF.TopTop}, and {@code MarginsF.BottomBottom} are properties that define the margins.</p>
<p>{@code MarginsF.EqualsEquals} determines if another object is equal to a <b>MarginsF</b> object.</p>
Modifier and Type | Class and Description |
---|---|
static class |
MarginsF.MarginFEventArgs |
static interface |
MarginsF.MarginFEventHandler |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether two
MarginsFMarginsF instances are equal. |
float |
getBottom()
Gets the
<b>bottom</b> marign. |
float |
getLeft()
Gets the
<b>left</b> margin. |
float |
getRight()
Gets the
<b>right</b> margin. |
float |
getTop()
Gets the
<b>top</b> 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 |
set(float margin)
Sets the specified margin for all sides.
|
void |
set(float left,
float right,
float top,
float bottom)
Sets the specified margins.
|
void |
setBottom(float value)
Sets the
<b>bottom</b> marign. |
void |
setLeft(float value)
Sets the
<b>left</b> margin. |
void |
setRight(float value)
Sets the
<b>right</b> margin. |
void |
setTop(float value)
Sets the
<b>top</b> marign. |
java.lang.String |
toString()
Returns a String that represents the current
MarginsFMarginsF instance. |
public boolean equals(java.lang.Object obj)
Determines whether two MarginsFMarginsF
instances are equal.
equals
in class java.lang.Object
obj
- The MarginsFMarginsF
instance on the left<b>true</b>
if the left MarginsFMarginsF
instances is equal to the right one; otherwise, <b>false</b>
.public float getBottom()
Gets the <b>bottom</b>
marign.
ArgumentException
- <p>The <b>bottom</b> parameter value is less than 0.</p>
public float getLeft()
Gets the <b>left</b>
margin.
ArgumentException
- <p>The <b>Left</b> parameter value is less than 0.</p>
public float getRight()
Gets the <b>right</b>
margin.
ArgumentException
- <p>The <b>Right</b> parameter value is less than 0.</p>
public float getTop()
Gets the <b>top</b>
marign.
ArgumentException
- <p>The <b>Top</b> parameter value is less than 0.</p>
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 java.lang.Object
public void set(float margin)
Sets the specified margin for all sides.
margin
- The margin for all sides.public void set(float left, float right, float top, float bottom)
Sets the specified margins.
left
- The left side.right
- The right side.top
- The top side.bottom
- The bottom side.public void setBottom(float value)
Sets the <b>bottom</b>
marign.
ArgumentException
- <p>The <b>bottom</b> parameter value is less than 0.</p>
public void setLeft(float value)
Sets the <b>left</b>
margin.
ArgumentException
- <p>The <b>Left</b> parameter value is less than 0.</p>
public void setRight(float value)
Sets the <b>right</b>
margin.
ArgumentException
- <p>The <b>Right</b> parameter value is less than 0.</p>
public void setTop(float value)
Sets the <b>top</b>
marign.
ArgumentException
- <p>The <b>Top</b> parameter value is less than 0.</p>
public java.lang.String toString()
Returns a String that represents the current MarginsFMarginsF
instance.
toString
in class java.lang.Object
System.StringString
that represents the current Object.