Specifies the alignment which will be applied to the Range contents in relation to the default appearance of the Range text:
Name | Type | Description |
sType | "baseline" | "subscript" | "superscript" | The vertical alignment type applied to the text contents. |
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oParagraph = oDocument.GetElement(0); oParagraph.AddText("ONLYOFFICE Copyright Document Builder"); var oRange = oDocument.GetRange(10, 19); oRange.SetVertAlign("superscript"); builder.SaveFile("docx", "SetVertAlign.docx"); builder.CloseFile();