FormatsString Method

Gets a formatted text string.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static string String(
	Object value,
	int maxLength = 0,
	bool useTotalLength = false,
	bool cutRight = true,
	bool padRight = true,
	char paddingChar = '',
	bool removeLineBreaks = false
)

Parameters

value  Object
Value to convert.
maxLength  Int32  (Optional)
Maximum length.
useTotalLength  Boolean  (Optional)
Indicates whether the total length should be used in the case of having a size less than the maximum size.
cutRight  Boolean  (Optional)
Indicates whether the chain is cut from the right if it exceeds the maximum size.
padRight  Boolean  (Optional)
String alignment
paddingChar  Char  (Optional)
Character used to fill the string.
removeLineBreaks  Boolean  (Optional)
Remove line breaks and replace them with a space.

Return Value

String
String with the value formatted.

See Also