Sets the text color to the current paragraph in the RGB format.
Name | Type | Default | Description |
r | byte | Red color component value. |
|
g | byte | Green color component value. |
|
b | byte | Blue color component value. |
|
isAuto | boolean | false | If this parameter is set to "true", then r,g,b parameters will be ignored. |
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oParagraph = oDocument.GetElement(0); oParagraph.AddText("This is a paragraph with the font color set to orange."); oParagraph.SetColor(255, 111, 61); builder.SaveFile("docx", "SetColor.docx"); builder.CloseFile();