Skip to main content

ApiParagraph

ApiParagraph is a subclass of ApiParaPr.

Methods

MethodReturnsDescription
AddBookmarkCrossRefbooleanAdds a bookmark cross-reference to the current paragraph.
AddCaptionbooleanAdds a caption paragraph after (or before) the current paragraph.
AddCaptionCrossRefbooleanAdds a caption cross-reference to the current paragraph.
AddColumnBreakApiRunAdds a column break to the current position and starts the next element from a new column.
AddCommentApiCommentAdds a comment to the current paragraph.
AddDrawingApiRunAdds a drawing object (image, shape or chart) to the current paragraph.
AddElementbooleanAdds an element to the current paragraph.
AddEndnoteCrossRefbooleanAdds an endnote cross-reference to the current paragraph.
AddFootnoteCrossRefbooleanAdds a footnote cross-reference to the current paragraph.
AddHeadingCrossRefbooleanAdds a heading cross-reference to the current paragraph.
AddHyperlinkApiHyperlinkAdds a hyperlink to a paragraph.
AddInlineLvlSdtApiInlineLvlSdtAdds an inline container.
AddLineBreakApiRunAdds a line break to the current position and starts the next element from a new line.
AddNumberedCrossRefbooleanAdds a numbered cross-reference to the current paragraph.
AddPageBreakApiRunAdds a page break and starts the next element from the next page.
AddPageBreakBeforeApiParagraphForces a page break before the paragraph.
AddPageNumberApiRunInserts a number of the current document page into the paragraph.
AddPagesCountApiRunInserts a number of pages in the current document into the paragraph.
AddTabStopApiRunAdds a tab stop to the current paragraph.
AddTextApiRunAdds some text to the current paragraph.
CopyApiParagraphCreates a paragraph copy. Ingnore comments, footnote references, complex fields.
DeletebooleanDeletes the current paragraph.
GetAllChartsApiChart[]Returns a collection of chart objects in the paragraph.
GetAllContentControlsApiInlineLvlSdt[]Returns a collection of content control objects in the paragraph.
GetAllDrawingObjectsDrawing[]Returns a collection of drawing objects in the paragraph.
GetAllImagesApiImage[]Returns a collection of image objects in the paragraph.
GetAllOleObjectsApiOleObject[]Returns a collection of OLE objects in the paragraph.
GetAllShapesApiShape[]Returns a collection of shape objects in the paragraph.
GetBetweenBorderBorder | undefinedReturns the between border of the current paragraph.
GetBottomBorderBorder | undefinedReturns the bottom border of the current paragraph.
GetClassType"paragraph"Returns a type of the ApiParagraph class.
GetContextualSpacingboolean | undefinedReturns the contextual spacing value of the current paragraph.
GetElementParagraphContentReturns a paragraph element using the position specified.
GetElementsCountnumberReturns a number of elements in the current paragraph.
GetFontNamesstring[]Returns all font names from all elements inside the current paragraph.
GetIndFirstLinetwips | undefinedReturns the paragraph first line indentation.
GetIndLefttwips | undefinedReturns the paragraph left side indentation.
GetIndRighttwips | undefinedReturns the paragraph right side indentation.
GetInternalIdstringReturns an internal ID of the current content paragraph.
GetJc"left" | "right" | "both" | "center" | undefinedReturns the paragraph contents justification.
GetKeepLinesboolean | undefinedReturns the keep lines value of the current paragraph.
GetKeepNextboolean | undefinedReturns the keep next value of the current paragraph.
GetLastRunWithTextApiRunReturns the last Run with text in the current paragraph.
GetLeftBorderBorder | undefinedReturns the left border of the current paragraph.
GetNextApiParagraph | nullReturns the next paragraph.
GetNumPrApiNumberingLevel | undefinedReturns the numbering level for the current paragraph referencing the numbering definition instance in the current document.
GetNumberingApiNumberingLevelReturns the numbering definition and numbering level for the numbered list.
GetOutlineLvlNumber | undefinedReturns the outline level of the specified properties.
GetPageBreakBeforeboolean | undefinedReturns the page break before value of the current paragraph.
GetParaIdnumberReturns a unique ID for the current paragraph.
GetParaPrApiParaPrReturns the paragraph properties.
GetParagraphMarkTextPrApiTextPrReturns the text properties of the paragraph mark which is used to mark the paragraph end. The mark can also acquire
GetParentContentControlApiBlockLvlSdt | nullReturns a content control that contains the current paragraph.
GetParentTableApiTable | nullReturns a table that contains the current paragraph.
GetParentTableCellApiTableCell | nullReturns a table cell that contains the current paragraph.
GetPosInParentNumberReturns the paragraph position within its parent element.
GetPreviousApiParagraphReturns the previous paragraph.
GetRangeApiRange | nullReturns a Range object that represents the part of the document contained in the specified paragraph.
GetRightBorderBorder | undefinedReturns the right border of the current paragraph.
GetSectionApiSectionReturns the paragraph section.
GetShdShd | undefinedReturns the shading applied to the contents of the paragraph.
GetSpacingAftertwipsReturns the spacing after value of the current paragraph.
GetSpacingBeforetwipsReturns the spacing before value of the current paragraph.
GetSpacingLineRule"auto" | "atLeast" | "exact" | undefinedReturns the paragraph line spacing rule.
GetSpacingLineValuetwips | line240 | undefinedReturns the paragraph line spacing value.
GetStyleApiStyleReturns the paragraph style method.
GetTabsTabStop[]Returns the custom tab stops of the current paragraph.
GetTextstringReturns the paragraph text.
GetTextPrApiTextPrReturns the text properties for a paragraph end mark.
GetTopBorderBorder | undefinedReturns the top border of the current paragraph.
GetWidowControlboolean | undefinedReturns the widow control value of the current paragraph.
InsertInContentControlApiParagraph | ApiBlockLvlSdtWraps the paragraph object with a rich text content control.
InsertParagraphApiParagraph | nullInserts a paragraph at the specified position.
LastParagraphContentReturns the last element of the paragraph.
MoveCursorToEndbooleanMoves the cursor to the end of the paragraph.
MoveCursorToStartbooleanMoves the cursor to the start of the paragraph.
PushbooleanAdds an element to the current paragraph.
RemoveAllElementsbooleanRemoves all the elements from the current paragraph.
RemoveElementbooleanRemoves an element using the position specified.
ReplaceByElementbooleanReplaces the current paragraph with a new element.
SearchApiRange[]Searches for a scope of a paragraph object. The search results are a collection of ApiRange objects.
SelectbooleanSelects the current paragraph.
SetBetweenBorderbooleanSpecifies the border which will be displayed between each paragraph in a set of paragraphs which have the same set of paragraph border settings.
SetBoldApiParagraphSets the bold property to the text character.
SetBottomBorderbooleanSpecifies the border which will be displayed below a set of paragraphs which have the same paragraph border settings.
SetCapsApiParagraphSpecifies that any lowercase characters in this paragraph are formatted for display only as their capital letter character equivalents.
SetColorApiParagraphSets the text color to the current paragraph.
SetContextualSpacingbooleanSpecifies that any space before or after this paragraph set using the
SetDoubleStrikeoutApiParagraphSpecifies that the contents of this paragraph are displayed with two horizontal lines through each character displayed on the line.
SetFontFamilyApiParagraphSets all 4 font slots with the specified font family.
SetFontSizeApiParagraphSets the font size to the characters of the current paragraph.
SetHighlightApiParagraphSpecifies a highlighting color which is applied as a background to the contents of the current paragraph.
SetIndFirstLinebooleanSets the paragraph first line indentation.
SetIndLeftbooleanSets the paragraph left side indentation.
SetIndRightbooleanSets the paragraph right side indentation.
SetItalicApiParagraphSets the italic property to the text character.
SetJcbooleanSets the paragraph contents justification.
SetKeepLinesbooleanSpecifies that when rendering the document using a page view, all lines of the current paragraph are maintained on a single page whenever possible.
SetKeepNextbooleanSpecifies that when rendering the document using a paginated view, the contents of the current paragraph are at least
SetLeftBorderbooleanSpecifies the border which will be displayed at the left side of the page around the specified paragraph.
SetNumPrbooleanSpecifies that the current paragraph references a numbering definition instance in the current document.
SetNumberingbooleanSpecifies that the current paragraph references the numbering definition instance in the current document.
SetOutlineLvlbooleanSets the outline level for the specified properties.
SetPageBreakBeforebooleanSpecifies that when rendering the document using a paginated view, the contents of the current paragraph are rendered at
SetParaIdbooleanSpecifies a unique ID for the current paragraph.
SetPositionApiParagraphSpecifies an amount by which text is raised or lowered for this paragraph in relation to the default
SetReadingOrderApiParagraphSpecifies the reading order for the current paragraph.
SetRightBorderbooleanSpecifies the border which will be displayed at the right side of the page around the specified paragraph.
SetSectionbooleanSets the specified section to the current paragraph.
SetShdbooleanSpecifies the shading applied to the contents of the paragraph.
SetSmallCapsApiParagraphSpecifies that all the small letter characters in this paragraph are formatted for display only as their capital
SetSpacingApiParagraphSets the text spacing measured in twentieths of a point.
SetSpacingAfterbooleanSets the spacing after the current paragraph. If the value of the isAfterAuto parameter is true, then
SetSpacingBeforebooleanSets the spacing before the current paragraph. If the value of the isBeforeAuto parameter is true, then
SetSpacingLinebooleanSets the paragraph line spacing. If the value of the sLineRule parameter is either
SetStrikeoutApiParagraphSpecifies that the contents of this paragraph are displayed with a single horizontal line through the center of the line.
SetStylebooleanThe paragraph style base method.
SetTabsbooleanSpecifies a sequence of custom tab stops which will be used for any tab characters in the current paragraph.
SetTextApiRunReplaces the paragraph content with the specified text.
SetTextPrbooleanSets the paragraph text properties.
SetTopBorderbooleanSpecifies the border which will be displayed above a set of paragraphs which have the same set of paragraph border settings.
SetUnderlineApiParagraphSpecifies that the contents of this paragraph are displayed along with a line appearing directly below the character
SetVertAlignApiParagraph | nullSpecifies the alignment which will be applied to the contents of this paragraph in relation to the default appearance of the paragraph text:
SetWidowControlbooleanSpecifies whether a single line of the current paragraph will be displayed on a separate page from the remaining content at display time by moving the line onto the following page.
ToHtmlstringConverts the paragraph to HTML.
ToJSONJSONConverts the ApiParagraph object into the JSON object.
WrapInMailMergeFieldbooleanWraps the paragraph content in a mail merge field.