Update Properties

This REST API updates Paragraph formatting properties.

Important properties are the following:

Property Name Type Description
AddSpaceBetweenFarEastAndAlpha bool Specifies 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.
AddSpaceBetweenFarEastAndDigit bool Specifies a flag indicating whether inter-character spacing is automatically adjusted between regions of numbers and regions of East Asian text in the current paragraph.
Alignment Aspose.Words.ParagraphAlignment Specifies text alignment for the paragraph.
Bidi bool Specifies whether this is a right-to-left paragraph.
DropCapPosition Aspose.Words.DropCapPosition Specifies the position for a drop cap text.
FirstLineIndent double Specifies the value (in points) for a first-line or hanging indent. Use a positive value to set the first-line indent, and use a negative value to set a hanging indent.
KeepTogether bool True if all lines in the paragraph are to remain on the same page.
KeepWithNext bool True if the paragraph is to remains on the same page as the paragraph that follows it.
LeftIndent double Specifies the value (in points) that represents the left indent for a paragraph.
LineSpacing double Specifies the line spacing (in points) for the paragraph.
LineSpacingRule Aspose.Words.LineSpacingRule Specifies the line spacing for the paragraph.
LinesToDrop int Specifies the number of lines of the paragraph text used to calculate the drop cap-height.
NoSpaceBetweenParagraphsOfSameStyle bool When true, “SpaceBefore” and “SpaceAfter” will be ignored between the paragraphs of the same style.
OutlineLevel Aspose.Words.OutlineLevel Specifies the outline level of the paragraph in the document.
PageBreakBefore bool True if a page break is forced before the paragraph.
RightIndent bool Specifies the value (in points) that represents the right indent for a paragraph.
SpaceAfter double Specifies the amount of spacing (in points) after the paragraph.
SpaceAfterAuto bool True if the amount of spacing after the paragraph is set automatically.
SpaceBefore double Specifies the amount of spacing (in points) before the paragraph.
SpaceBeforeAuto bool True if the amount of spacing before the paragraph is set automatically.
StyleIdentifier Aspose.Words.StyleIdentifier Specifies the locale-independent style identifier of the paragraph style applied to this formatting.
StyleName string Specifies the name of the paragraph style applied to this formatting.
SuppressAutoHyphens bool Specifies whether the current paragraph should be exempted from any hyphenation which is applied in the document settings.
SuppressLineNumbers bool Specifies whether the current paragraph’s lines should be exempted from line numbering which is applied in the parent section.
WidowControl bool True if the first and last lines in the paragraph are to remain on the same page as the rest of the paragraph.

Usage examples with cURL and Postman

You can carry out REST API interactions using cURL and Postman. Please read these instructions to receive a personal JWT_TOKEN for authorization.

Aspose.Words Cloud SDK Family

Using SDK is the best way to speed up the development. Please go to the GitHub repository to explore a wide family of our Cloud SDKs. These powerful libraries take care of all low-level programming details and let you focus on your primary tasks.

Usage examples in Python, Java, C#, etc.

The following code samples show how to interact with the REST API using almost any mainstream programming language.

You can find a lot of other examples in Python, Java, C#, JavaScript, PHP, C++, Golang, Ruby, Swift, Dart on GitHub. All codes are thoroughly tested and ready for production use.