Returns a paragraph from all the paragraphs that are in the range.
Name | Type | Description |
nPos | Number | The paragraph position in the range. |
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oFParagraph = oDocument.GetElement(0); oFParagraph.AddText("First paragraph"); var oSParagraph = Api.CreateParagraph(); oSParagraph.AddText("Second Paragraph"); oDocument.Push(oSParagraph); var oRange = oDocument.GetRange(0, 28); var oRangeParagraph = oRange.GetParagraph(1); oRangeParagraph.SetBold("true"); builder.SaveFile("docx", "GetParagraph.docx"); builder.CloseFile();