Creates a rich text box.

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
public static RichTextBox CreateRichTextBox(
	int x,
	int y,
	int width,
	int height,
	Color backColor,
	Color foreColor,
	Font font,
	string text,
	AnchorStyles anchor
)

Parameters

x
Type: System..::.Int32
Position X.
y
Type: System..::.Int32
Position Y.
width
Type: System..::.Int32
Control width.
height
Type: System..::.Int32
Control height.
backColor
Type: System.Drawing..::.Color
A background color.
foreColor
Type: System.Drawing..::.Color
A foreground color.
font
Type: System.Drawing..::.Font
A font.
text
Type: System..::.String
A control text.
anchor
Type: System.Windows.Forms..::.AnchorStyles
An anchor.

Return Value

Returns a created control.

Exceptions

ExceptionCondition
System..::.ArgumentNullException text is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also