GetParaPr
Returns the paragraph properties.
Syntax
expression.GetParaPr();
expression - A variable that represents a ApiRichParagraph class.
Parameters
This method doesn't have any parameters.
Returns
Example
This example gets rich paragraph properties from rich paragraph.
- Code
- Result
let doc = Api.GetDocument();
let freeTextAnnot = Api.CreateFreeTextAnnot([160, 50, 360, 135]);
let page = doc.GetPage(0);
page.AddObject(freeTextAnnot);
freeTextAnnot.SetIntent("freeTextCallout");
freeTextAnnot.SetCallout([{x: 161, y: 51}, {x: 249, y: 125}, {x: 261, y: 125}]);
freeTextAnnot.SetRectDiff([100, 64, 0.5, 0.5]);
let richContent = freeTextAnnot.GetContent();
let para = richContent.GetElement(0);
para.AddText("Example text");
let paraPr = para.GetParaPr();
paraPr.SetJc("right");
console.log(`We got rich paragraph properties from rich paragraph and set justification to it`);