Click or drag to resize

RtfTextWriter WriteText Method (Font, Color, Color, String)

Writes text with specified font, foreground color, and background color.

Namespace: Spire.Xls.Core.Spreadsheet
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public void WriteText(
	Font font,
	Color foreColor,
	Color backColor,
	string strText
)

Parameters

font
Type: System.Drawing Font
The font used to draw the text.
foreColor
Type: System.Drawing Color
The color of the text.
backColor
Type: System.Drawing Color
The background color behind the text.
strText
Type: System String
The text string to be drawn.
See Also