winforms\Managed\System\WinForms\MaskedTextBox.cs (13)
1330Delete(Keys.Delete, 0, this.maskedTextProvider.Length);
1354Replace(value, /*startPosition*/ 0, /*selectionLen*/ this.maskedTextProvider.Length);
1706Debug.Assert( startPosition >= 0 && ((startPosition + selectionLen) <= this.maskedTextProvider.Length), "Invalid position range." );
1726if( (startPosition + selectionLen) == this.maskedTextProvider.Length ) // At end of string, delete does nothing.
1812base.SelectInternal( this.caretTestPos, 0, this.maskedTextProvider.Length );
1922return this.maskedTextProvider.ToString(/*ignorePwdChar */ false, includePrompt, /*includeLiterals*/ true, 0, this.maskedTextProvider.Length);
2124selectionLen = this.maskedTextProvider.Length - startPosition;
2128selectionLen = startPosition == this.maskedTextProvider.Length /*at end of text*/ ? startPosition : startPosition + 1;
2496base.SelectInternal( this.caretTestPos, 0, this.maskedTextProvider.Length );
2629if (startPosition < this.maskedTextProvider.Length)
2826testPos = newProvider.Length;
3299base.SelectInternal( this.caretTestPos, this.lastSelLength, this.maskedTextProvider.Length );
3318base.SelectInternal( this.caretTestPos, this.lastSelLength, this.maskedTextProvider.Length );