StringsMaxLength Method

Get a string with the specified maximum length.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static string MaxLength(
	Object text,
	int length
)

Parameters

text  Object
Text used.
length  Int32
Maximum length of the chain to obtain.

Return Value

String
String with the substring from the start position and with the indicated length up to the maximum length of the text.

Empty if the text is empty or the index exceeds the length of the text.

See Also