|
ASPOSE home |
java.lang.Objectcom.aspose.words.ParagraphFormat
public class ParagraphFormat
Property Getters/Setters Summary | ||
---|---|---|
byte | getAlignment() | |
void | setAlignment(byte value) | |
Gets or sets text alignment for the paragraph. The value of the property is ParagraphAlignment integer constant. | ||
boolean | getBidi() | |
void | setBidi(boolean value) | |
Gets or sets whether this is a rigt-to-left paragraph. | ||
Borders | getBorders() | |
Gets collection of borders of the paragraph. | ||
double | getFirstLineIndent() | |
void | setFirstLineIndent(double value) | |
Gets or sets the value (in points) for a first line or hanging indent. Use a positive value to set a first-line indent, and use a negative value to set a hanging indent. | ||
boolean | isHeading() | |
True when the paragraph style is one of the built-in Heading styles. | ||
boolean | isListItem() | |
True when the paragraph is an item in a bulleted or numbered list. | ||
boolean | getKeepTogether() | |
void | setKeepTogether(boolean value) | |
True if all lines in the paragraph are to remain on the same page. | ||
boolean | getKeepWithNext() | |
void | setKeepWithNext(boolean value) | |
True if the paragraph is to remains on the same page as the paragraph that follows it. | ||
double | getLeftIndent() | |
void | setLeftIndent(double value) | |
Gets or sets the value (in points) that represents the left indent for paragraph. | ||
double | getLineSpacing() | |
void | setLineSpacing(double value) | |
Gets or sets the line spacing (in points) for the paragraph. | ||
int | getLineSpacingRule() | |
void | setLineSpacingRule(int value) | |
Gets or sets the line spacing for the paragraph. The value of the property is LineSpacingRule integer constant. | ||
boolean | getNoSpaceBetweenParagraphsOfSameStyle() | |
void | setNoSpaceBetweenParagraphsOfSameStyle(boolean value) | |
When true, |
||
int | getOutlineLevel() | |
void | setOutlineLevel(int value) | |
Specifies the outline level of the paragraph in the document. The value of the property is OutlineLevel integer constant. | ||
boolean | getPageBreakBefore() | |
void | setPageBreakBefore(boolean value) | |
True if a page break is forced before the paragraph. | ||
double | getRightIndent() | |
void | setRightIndent(double value) | |
Gets or sets the value (in points) that represents the right indent for paragraph. | ||
Shading | getShading() | |
Returns a Shading object that refers to the shading formatting for the paragraph. | ||
double | getSpaceAfter() | |
void | setSpaceAfter(double value) | |
Gets or sets the amount of spacing (in points) after the paragraph. | ||
boolean | getSpaceAfterAuto() | |
void | setSpaceAfterAuto(boolean value) | |
True if the amount of spacing after the paragraph is set automatically. | ||
double | getSpaceBefore() | |
void | setSpaceBefore(double value) | |
Gets or sets the amount of spacing (in points) before the paragraph. | ||
boolean | getSpaceBeforeAuto() | |
void | setSpaceBeforeAuto(boolean value) | |
True if the amount of spacing before the paragraph is set automatically. | ||
Style | getStyle() | |
void | setStyle(Style value) | |
Gets or sets the paragraph style applied to this formatting. | ||
int | getStyleIdentifier() | |
void | setStyleIdentifier(int value) | |
Gets or sets the locale independent style identifier of the paragraph style applied to this formatting. The value of the property is StyleIdentifier integer constant. | ||
java.lang.String | getStyleName() | |
void | setStyleName(java.lang.String value) | |
Gets or sets the name of the paragraph style applied to this formatting. | ||
TabStops | getTabStops() | |
Gets the collection of custom tab stops defined for this object. | ||
boolean | getWidowControl() | |
void | setWidowControl(boolean value) | |
True if the first and last lines in the paragraph are to remain on the same page as the rest of the paragraph. |
Method Summary | ||
---|---|---|
void | clearFormatting() | |
Resets to default paragraph formatting. | ||
java.lang.Object | fetchInheritedAttr(int key) | |
Reserved for internal use. | ||
java.lang.Object | getDirectAttr(int key) | |
Reserved for internal use. | ||
void | setAttr(int key, java.lang.Object value) | |
Reserved for internal use. |
Property Getters/Setters Detail |
---|
getAlignment/setAlignment | |
public byte getAlignment() public void setAlignment(byte value) |
getNoSpaceBetweenParagraphsOfSameStyle/setNoSpaceBetweenParagraphsOfSameStyle | |
public boolean getNoSpaceBetweenParagraphsOfSameStyle() public void setNoSpaceBetweenParagraphsOfSameStyle(boolean value) |
This setting only takes affect when applied to a paragraph style. If applied to a paragraph directly, it has no effect.
getKeepTogether/setKeepTogether | |
public boolean getKeepTogether() public void setKeepTogether(boolean value) |
getKeepWithNext/setKeepWithNext | |
public boolean getKeepWithNext() public void setKeepWithNext(boolean value) |
getPageBreakBefore/setPageBreakBefore | |
public boolean getPageBreakBefore() public void setPageBreakBefore(boolean value) |
getWidowControl/setWidowControl | |
public boolean getWidowControl() public void setWidowControl(boolean value) |
getBidi/setBidi | |
public boolean getBidi() public void setBidi(boolean value) |
When true, the runs and other inline objects in this paragraph are laid out right to left.
getLeftIndent/setLeftIndent | |
public double getLeftIndent() public void setLeftIndent(double value) |
getRightIndent/setRightIndent | |
public double getRightIndent() public void setRightIndent(double value) |
getFirstLineIndent/setFirstLineIndent | |
public double getFirstLineIndent() public void setFirstLineIndent(double value) |
getSpaceBeforeAuto/setSpaceBeforeAuto | |
public boolean getSpaceBeforeAuto() public void setSpaceBeforeAuto(boolean value) |
When set to true, overrides the effect of
When you set paragraph Space Before and Space After to Auto, Microsoft Word adds 14 points spacing betweeb paragraphs automatically according to the following rules:
getSpaceAfterAuto/setSpaceAfterAuto | |
public boolean getSpaceAfterAuto() public void setSpaceAfterAuto(boolean value) |
When set to true, overrides the effect of
When you set paragraph Space Before and Space After to Auto, Microsoft Word adds 14 points spacing betweeb paragraphs automatically according to the following rules:
getSpaceBefore/setSpaceBefore | |
public double getSpaceBefore() public void setSpaceBefore(double value) |
Has no effect when
getSpaceAfter/setSpaceAfter | |
public double getSpaceAfter() public void setSpaceAfter(double value) |
Has no effect when
getLineSpacingRule/setLineSpacingRule | |
public int getLineSpacingRule() public void setLineSpacingRule(int value) |
getLineSpacing/setLineSpacing | |
public double getLineSpacing() public void setLineSpacing(double value) |
When LineSpacingRule property is set to AtLeast, the line spacing can be greater than or equal to, but never less than the specified LineSpacing value.
When LineSpacingRule propert is set to Exactly, the line spacing never changes from the specified LineSpacing value, even if a larger font is used within the paragraph.
isHeading | |
public boolean isHeading() |
isListItem | |
public boolean isListItem() |
getOutlineLevel/setOutlineLevel | |
public int getOutlineLevel() public void setOutlineLevel(int value) |
getShading | |
public Shading getShading() |
getBorders | |
public Borders getBorders() |
getStyle/setStyle | |
public Style getStyle() public void setStyle(Style value) |
getStyleName/setStyleName | |
public java.lang.String getStyleName() public void setStyleName(java.lang.String value) |
getStyleIdentifier/setStyleIdentifier | |
public int getStyleIdentifier() public void setStyleIdentifier(int value) |
getTabStops | |
public TabStops getTabStops() |
Method Detail |
---|
clearFormatting | |
public void clearFormatting() |
setAttr | |
public void setAttr(int key, java.lang.Object value) |
fetchInheritedAttr | |
public java.lang.Object fetchInheritedAttr(int key) throws java.lang.Exception |
getDirectAttr | |
public java.lang.Object getDirectAttr(int key) throws java.lang.Exception |
|
ASPOSE home |