MobileForms Toolkit Documentation

MaskedTextProvider.Replace Method (Char, Int32, Int32)

Replaces a single character between the specified starting position and length with the specified character value.

public virtual bool Replace(
char input,
int position,
int length
);

Parameters

input
The Char value that replaces the existing value.
position
The zero-based position to search for the first editable character to replace.
length
The length of the text to be replaced.

Return Value

true if the character was successfully replaced; otherwise, false.

Remarks

The Replace(Char, Int32, Int32) method searches for the first editable position in the formatted string between the specified starting position and length. If one is found, the value of the editable position is changed to the specified character, input.

See Also

MaskedTextProvider Class | Resco.Controls.MaskedTextBox Namespace | MaskedTextProvider.Replace Overload List