Specifies the alignment which will be applied to the contents of this paragraph in relation to the default appearance of the paragraph 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("This is a paragraph with the text aligned below the baseline vertically."); oParagraph.SetVertAlign("subscript"); oParagraph = Api.CreateParagraph(); oParagraph.AddText("This is a paragraph with the text aligned above the baseline vertically."); oParagraph.SetVertAlign("superscript"); oDocument.Push(oParagraph); builder.SaveFile("docx", "SetVertAlign.docx"); builder.CloseFile();