GetSpacingLineRule
Returns the paragraph line spacing rule.
Inherited from ApiParaPr.GetSpacingLineRule.
Example
Get the paragraph line spacing rule in a document.
// How to get the spacing line rule of the paragraph and display it in a document.
// Get the paragraph spacing line rule in a document.
let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
let paraPr = paragraph.GetParaPr();
paraPr.SetSpacingLine(3 * 240, "auto");
paragraph.AddText("Paragraph 1. Spacing: 3 times of a common paragraph line spacing.");
paragraph.AddLineBreak();
paragraph.AddText("These sentences are used to add lines for demonstrative purposes. ");
paragraph.AddText("These sentences are used to add lines for demonstrative purposes. ");
paragraph.AddLineBreak();
let spacingLineRule = paraPr.GetSpacingLineRule();
paragraph.AddText("Spacing line rule: " + spacingLineRule);