UtilStringDrawTextBox Method

Draws a box around the specified text, that is, a text-box.

Definition

Namespace: DevCase.Core.DataProcessing.Common
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string DrawTextBox(
	string input,
	int verticalPadding = 0,
	int horizontalPadding = 0,
	char fillChar = '',
	BoxDrawingStyle drawingStyle = default
)

Parameters

input  String
The input text to be boxed.
verticalPadding  Int32  (Optional)
Optional. The number of vertical padding lines. Default value is: '0'.
horizontalPadding  Int32  (Optional)
Optional. The number of horizontal padding characters. Default value is: '0'.
fillChar  Char  (Optional)
Optional. The character used to fill the empty space in the box. Default value is: " " (white-space).
drawingStyle  BoxDrawingStyle  (Optional)
Optional. The style of the box drawing. If not specified, a default style will be used.

If this value is null, "-" character is used for vertical sides, "|" for horizontal sides and "+" for all corners.

Default value is: null.

Return Value

String
The resulting string containing the text enclosed in the box.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also