跳到主要内容

SetColor

Sets the text color to the current paragraph in the RGB format.

Syntax

expression.SetColor(r, g, b, isAuto);

expression - A variable that represents a ApiParagraph class.

Parameters

NameRequired/OptionalData typeDefaultDescription
rRequiredbyteRed color component value.
gRequiredbyteGreen color component value.
bRequiredbyteBlue color component value.
isAutoOptionalbooleanfalseIf this parameter is set to "true", then r,g,b parameters will be ignored.

Returns

ApiParagraph