Sets all 4 font slots with the specified font family.
Name | Type | Description |
sFontFamily | string | The font family or families used for the current paragraph. |
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oParagraph = oDocument.GetElement(0); oParagraph.AddText("This is a paragraph with the font family set to 'Consolas'."); oParagraph.SetFontFamily("Consolas"); builder.SaveFile("docx", "SetFontFamily.docx"); builder.CloseFile();