|
|
@@ -95,6 +95,66 @@ public final class Section extends Range |
|
|
|
return _props.getXaPage(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Set the height of the bottom margin in twips. In the AbstractWordUtils class, a constant |
|
|
|
* is defined that indicates how many twips there are per inch and it can be used in setting |
|
|
|
* the margins width a little like this; |
|
|
|
* |
|
|
|
* section.setMarginBottom( (int) 1.5 * AbstractWordUtils.TWIPS_PER_INCH ); |
|
|
|
* |
|
|
|
* @param marginWidth A primitive int whose value will indciate how high the margin should |
|
|
|
* be - in twips. |
|
|
|
*/ |
|
|
|
public void setMarginBottom(int marginWidth) |
|
|
|
{ |
|
|
|
this._props.setDyaBottom(marginWidth); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Set the width of the left hand margin in twips. In the AbstractWordUtils class, a constant |
|
|
|
* is defined that indicates how many twips there are per inch and it can be used in setting |
|
|
|
* the margins width a little like this; |
|
|
|
* |
|
|
|
* section.setMarginLeft( (int) 1.5 * AbstractWordUtils.TWIPS_PER_INCH ); |
|
|
|
* |
|
|
|
* @param marginWidth A primitive int whose value will indciate how high the margin should |
|
|
|
* be - in twips. |
|
|
|
*/ |
|
|
|
public void setMarginLeft(int marginWidth) |
|
|
|
{ |
|
|
|
this._props.setDxaLeft(marginWidth); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Set the width of the right hand margin in twips. In the AbstractWordUtils class, a constant |
|
|
|
* is defined that indicates how many twips there are per inch and it can be used in setting |
|
|
|
* the margins width a little like this; |
|
|
|
* |
|
|
|
* section.setMarginRight( (int) 1.5 * AbstractWordUtils.TWIPS_PER_INCH ); |
|
|
|
* |
|
|
|
* @param marginWidth A primitive int whose value will indciate how high the margin should |
|
|
|
* be - in twips. |
|
|
|
*/ |
|
|
|
public void setMarginRight(int marginWidth) |
|
|
|
{ |
|
|
|
this._props.setDxaRight(marginWidth); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Set the height of the top margin in twips. In the AbstractWordUtils class, a constant |
|
|
|
* is defined that indicates how many twips there are per inch and it can be used in setting |
|
|
|
* the margins width a little like this; |
|
|
|
* |
|
|
|
* section.setMarginTop( (int) 1.5 * AbstractWordUtils.TWIPS_PER_INCH ); |
|
|
|
* |
|
|
|
* @param marginWidth A primitive int whose value will indciate how high the margin should |
|
|
|
* be - in twips. |
|
|
|
*/ |
|
|
|
public void setMarginTop(int marginWidth) |
|
|
|
{ |
|
|
|
this._props.setDyaTop(marginWidth); |
|
|
|
} |
|
|
|
|
|
|
|
public boolean isColumnsEvenlySpaced() |
|
|
|
{ |
|
|
|
return _props.getFEvenlySpaced(); |