UtilStringJustifyText Method

Justifies the input text by adjusting the line width and spacing between words.

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 JustifyText(
	string input,
	int length,
	bool justifyLastLine = false
)

Parameters

input  String
The input text.
length  Int32
The desired length for each text line.
justifyLastLine  Boolean  (Optional)
Optional. Indicates whether to justify the last line of the paragraphs.

Default value is: False.

Return Value

String
The resulting justified text.

Example

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

See Also