ApiParagraph
class ApiParagraph extends ApiParaPr
Description
Class representing a paragraph.
Instance Methods
- GetClassType
(): paragraph
Returns a type of the ApiParagraph class.
- AddText
(sText): ApiRun
Adds some text to the current paragraph.
- AddLineBreak
(): ApiRun
Adds a line break to the current position and starts the next element from a new line.
- GetParaPr
(): ApiParaPr
Returns the paragraph properties.
- GetElementsCount
(): number
Returns a number of elements in the current paragraph.
- GetElement
(nPos): ParagraphContent
Returns a paragraph element using the position specified.
- RemoveElement
(nPos)
R.
- RemoveAllElements
()
R.
- Delete
(): boolean
Deletes the current paragraph.
- GetNext
(): ApiParagraph | "null"
Returns the next paragraph.
- GetPrevious
(): ApiParagraph
Returns the previous paragraph.
- Copy
(): ApiParagraph
C.
- AddElement
(oElement, nPos): boolean
Adds an element to the current paragraph.
- AddTabStop
(): ApiRun
Adds a tab stop to the current paragraph.
- SetIndLeft
(nValue)
Sets the paragraph left side indentation.
- GetIndLeft
()
Returns the paragraph left side indentation.
- SetIndRight
(nValue)
Sets the paragraph right side indentation.
- GetIndRight
()
Returns the paragraph right side indentation.
- SetIndFirstLine
(nValue)
Sets the paragraph first line indentation.
- GetIndFirstLine
()
Returns the paragraph first line indentation.
- SetJc
(sJc)
Sets the paragraph contents justification.
- GetJc
()
Returns the paragraph contents justification.
- SetSpacingLine
(nLine, sLineRule)
S.
- GetSpacingLineValue
()
Returns the paragraph line spacing value.
- GetSpacingLineRule
()
Returns the paragraph line spacing rule.
- SetSpacingBefore
(nBefore, isBeforeAuto)
S.
- GetSpacingBefore
()
Returns the spacing before value of the current paragraph.
- SetSpacingAfter
(nAfter, isAfterAuto)
S.
- GetSpacingAfter
()
Returns the spacing after value of the current paragraph.
- SetTabs
(aPos, aVal)
S.
- SetBullet
(oBullet)
Sets the bullet or numbering to the current paragraph.
- SetOutlineLvl
(nLvl)
Sets the outline level for the specified properties.
- GetOutlineLvl
()
Gets the outline level of the specified properties.
Extends
- ApiParaPr
Class representing the paragraph properties.