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
)
Public Sub WriteText (
font As Font,
foreColor As Color,
backColor As Color,
strText As String
)
public:
void WriteText(
Font^ font,
Color foreColor,
Color backColor,
String^ strText
)
member WriteText :
font : Font *
foreColor : Color *
backColor : Color *
strText : string -> unit
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