java.lang.Objectcom.aspose.words.ParagraphFormat
public class ParagraphFormat
Property Getters/Setters Summary | ||
---|---|---|
boolean | getAddSpaceBetweenFarEastAndAlpha() | |
void | setAddSpaceBetweenFarEastAndAlpha(boolean value) | |
Gets or sets a flag indicating whether inter-character spacing is automatically adjusted between regions of Latin text and regions of East Asian text in the current paragraph. | ||
boolean | getAddSpaceBetweenFarEastAndDigit() | |
void | setAddSpaceBetweenFarEastAndDigit(boolean value) | |
Gets or sets a flag indicating whether inter-character spacing is automatically adjusted between regions of numbers and regions of East Asian text in the current paragraph. | ||
int | getAlignment() | |
void | setAlignment(int 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 right-to-left paragraph. | ||
BorderCollection | getBorders() | |
Gets collection of borders of the paragraph. | ||
int | getDropCapPosition() | |
void | setDropCapPosition(int value) | |
Gets or sets the position for a drop cap text. The value of the property is DropCapPosition integer constant. | ||
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. | ||
int | getLinesToDrop() | |
void | setLinesToDrop(int value) | |
Gets or sets the number of lines of the paragraph text used to calculate the drop cap height. | ||
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. | ||
boolean | getSuppressAutoHyphens() | |
void | setSuppressAutoHyphens(boolean value) | |
Specifies whether the current paragraph should be exempted from any hyphenation which is applied in the document settings. | ||
boolean | getSuppressLineNumbers() | |
void | setSuppressLineNumbers(boolean value) | |
Specifies whether the current paragraph's lines should be exempted from line numbering which is applied in the parent section. | ||
TabStopCollection | 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 | fetchInheritedBorderAttr(int key) | |
Reserved for internal use. | ||
java.lang.Object | fetchInheritedShadingAttr(int key) | |
Reserved for internal use. | ||
java.lang.Object | getDirectBorderAttr(int key) | |
Reserved for internal use. | ||
java.util.TreeMap | getPossibleBorderKeys() | |
Reserved for internal use. | ||
void | setBorderAttr(int key, java.lang.Object value) | |
Reserved for internal use. |
Property Getters/Setters Detail |
---|
getAddSpaceBetweenFarEastAndAlpha/setAddSpaceBetweenFarEastAndAlpha | |
public boolean getAddSpaceBetweenFarEastAndAlpha() / public void setAddSpaceBetweenFarEastAndAlpha(boolean value) |
getAddSpaceBetweenFarEastAndDigit/setAddSpaceBetweenFarEastAndDigit | |
public boolean getAddSpaceBetweenFarEastAndDigit() / public void setAddSpaceBetweenFarEastAndDigit(boolean value) |
getAlignment/setAlignment | |
public int getAlignment() / public void setAlignment(int 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.
getBorders | |
public BorderCollection getBorders() |
getDropCapPosition/setDropCapPosition | |
public int getDropCapPosition() / public void setDropCapPosition(int value) |
getFirstLineIndent/setFirstLineIndent | |
public double getFirstLineIndent() / public void setFirstLineIndent(double value) |
isHeading | |
public boolean isHeading() |
isListItem | |
public boolean isListItem() |
getKeepTogether/setKeepTogether | |
public boolean getKeepTogether() / public void setKeepTogether(boolean value) |
getKeepWithNext/setKeepWithNext | |
public boolean getKeepWithNext() / public void setKeepWithNext(boolean value) |
getLeftIndent/setLeftIndent | |
public double getLeftIndent() / public void setLeftIndent(double 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 property is set to Exactly, the line spacing never changes from the specified LineSpacing value, even if a larger font is used within the paragraph.
getLineSpacingRule/setLineSpacingRule | |
public int getLineSpacingRule() / public void setLineSpacingRule(int value) |
getLinesToDrop/setLinesToDrop | |
public int getLinesToDrop() / public void setLinesToDrop(int 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.
getOutlineLevel/setOutlineLevel | |
public int getOutlineLevel() / public void setOutlineLevel(int value) |
getPageBreakBefore/setPageBreakBefore | |
public boolean getPageBreakBefore() / public void setPageBreakBefore(boolean value) |
getRightIndent/setRightIndent | |
public double getRightIndent() / public void setRightIndent(double value) |
getShading | |
public Shading getShading() |
getSpaceAfter/setSpaceAfter | |
public double getSpaceAfter() / public void setSpaceAfter(double value) |
Has no effect when
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 between paragraphs automatically according to the following rules:
getSpaceBefore/setSpaceBefore | |
public double getSpaceBefore() / public void setSpaceBefore(double value) |
Has no effect when
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 between paragraphs automatically according to the following rules:
getStyle/setStyle | |
public Style getStyle() / public void setStyle(Style value) |
getStyleIdentifier/setStyleIdentifier | |
public int getStyleIdentifier() / public void setStyleIdentifier(int value) |
getStyleName/setStyleName | |
public java.lang.String getStyleName() / public void setStyleName(java.lang.String value) |
getSuppressAutoHyphens/setSuppressAutoHyphens | |
public boolean getSuppressAutoHyphens() / public void setSuppressAutoHyphens(boolean value) |
getSuppressLineNumbers/setSuppressLineNumbers | |
public boolean getSuppressLineNumbers() / public void setSuppressLineNumbers(boolean value) |
getTabStops | |
public TabStopCollection getTabStops() |
getWidowControl/setWidowControl | |
public boolean getWidowControl() / public void setWidowControl(boolean value) |
Method Detail |
---|
clearFormatting | |
public void clearFormatting() |
fetchInheritedBorderAttr | |
public java.lang.Object fetchInheritedBorderAttr(int key) |
fetchInheritedShadingAttr | |
public java.lang.Object fetchInheritedShadingAttr(int key) |
getDirectBorderAttr | |
public java.lang.Object getDirectBorderAttr(int key) |
getPossibleBorderKeys | |
public java.util.TreeMap getPossibleBorderKeys() |
setBorderAttr | |
public void setBorderAttr(int key, java.lang.Object value) |