Click or drag to resize

AnnotationBaseFormatRtfString Method

Modifies the formatting of an RTF (Rich Text Format) string by setting or clearing bold, italic, underline, and font face properties on the first character run.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 6.0
Syntax
public static string FormatRtfString(
	string rtf_in,
	bool clear_bold,
	bool set_bold,
	bool clear_italic,
	bool set_italic,
	bool clear_underline,
	bool set_underline,
	bool clear_facename,
	bool set_facename,
	string facename
)

Parameters

rtf_in
Type: SystemString
The input RTF string to modify.
clear_bold
Type: SystemBoolean
If true, clears the bold formatting.
set_bold
Type: SystemBoolean
If true, sets the bold formatting.
clear_italic
Type: SystemBoolean
If true, clears the italic formatting.
set_italic
Type: SystemBoolean
If true, sets the italic formatting.
clear_underline
Type: SystemBoolean
If true, clears the underline formatting.
set_underline
Type: SystemBoolean
If true, sets the underline formatting.
clear_facename
Type: SystemBoolean
If true, clears the font face name.
set_facename
Type: SystemBoolean
If true, sets the font face name.
facename
Type: SystemString
The font face name to set if set_facename is true.

Return Value

Type: String
The modified RTF string with the requested formatting changes applied.
See Also