Skip to content

TextBaseMarkupExtensions.MaxLength<T> method

Sets the maximum text length in UTF-16 code units. 0 means unlimited.

public static T MaxLength<T>(this T target, int value)
where T : TextBase
parameter description
T Receiver type.
target Target TextBase.
value Value assigned to MaxLength.

The same element for chaining.

Sets: TextBase.MaxLength