winforms\Managed\System\WinForms\MaskedTextBox.cs (108)
127this.flagState[IS_NULL_MASK] = true;
142this.flagState[IS_NULL_MASK] = false;
156this.flagState[IS_NULL_MASK] = false;
171if (!this.flagState[IS_NULL_MASK])
180this.flagState[HIDE_PROMPT_ON_LEAVE ] = false;
181this.flagState[BEEP_ON_ERROR ] = false;
182this.flagState[USE_SYSTEM_PASSWORD_CHAR ] = false;
183this.flagState[REJECT_INPUT_ON_FIRST_FAILURE] = false;
187this.flagState[CUTCOPYINCLUDEPROMPT ] = this.maskedTextProvider.IncludePrompt;
188this.flagState[CUTCOPYINCLUDELITERALS ] = this.maskedTextProvider.IncludeLiterals;
191this.flagState[HANDLE_KEY_PRESS] = true;
309return this.flagState[BEEP_ON_ERROR];
313this.flagState[BEEP_ON_ERROR] = value;
422if( this.flagState[CUTCOPYINCLUDEPROMPT] )
424if( this.flagState[CUTCOPYINCLUDELITERALS] )
432if( this.flagState[CUTCOPYINCLUDELITERALS] )
450this.flagState[CUTCOPYINCLUDEPROMPT] = true;
451this.flagState[CUTCOPYINCLUDELITERALS] = false;
455this.flagState[CUTCOPYINCLUDEPROMPT] = false;
456this.flagState[CUTCOPYINCLUDELITERALS] = true;
461this.flagState[CUTCOPYINCLUDEPROMPT] = include;
462this.flagState[CUTCOPYINCLUDELITERALS] = include;
500return this.flagState[HIDE_PROMPT_ON_LEAVE];
504if( this.flagState[HIDE_PROMPT_ON_LEAVE] != value )
506this.flagState[HIDE_PROMPT_ON_LEAVE] = value;
510if( !this.flagState[IS_NULL_MASK]&& !this.Focused && !this.MaskFull && !this.DesignMode )
608if( this.flagState[IS_NULL_MASK])
627return this.flagState[INSERT_TOGGLED];
670this.flagState[QUERY_BASE_TEXT] = true;
677this.flagState[QUERY_BASE_TEXT] = false;
703return this.flagState[IS_NULL_MASK]? string.Empty : this.maskedTextProvider.Mask;
712if( this.flagState[IS_NULL_MASK] == string.IsNullOrEmpty( value ) && (this.flagState[IS_NULL_MASK] || value == this.maskedTextProvider.Mask) )
730this.flagState[IS_NULL_MASK] = true;
763if( this.flagState[IS_NULL_MASK] )
849return this.flagState[IS_NULL_MASK] ? null : (MaskedTextProvider) this.maskedTextProvider.Clone();
958if( this.flagState[IS_NULL_MASK])
1052if (!this.flagState[IS_NULL_MASK])
1074return this.flagState[REJECT_INPUT_ON_FIRST_FAILURE];
1078this.flagState[REJECT_INPUT_ON_FIRST_FAILURE] = value;
1163if( this.flagState[IS_NULL_MASK])
1178if (this.flagState[IS_NULL_MASK])
1192this.flagState[IME_COMPLETING] = true;
1312if( this.flagState[IS_NULL_MASK] || this.flagState[QUERY_BASE_TEXT])
1321if (this.flagState[IS_NULL_MASK])
1368if( this.flagState[IS_NULL_MASK] )
1389Debug.Assert( !this.flagState[IS_NULL_MASK], "This method must be called when a Mask is provided." );
1496string oldText = this.flagState[IS_NULL_MASK] ? null : TextOutput;
1528if( this.flagState[IS_NULL_MASK] )
1584return this.flagState[USE_SYSTEM_PASSWORD_CHAR];
1588if (value != this.flagState[USE_SYSTEM_PASSWORD_CHAR])
1606this.flagState[USE_SYSTEM_PASSWORD_CHAR] = value;
1608if( this.flagState[IS_NULL_MASK])
1688if (!this.flagState[IS_NULL_MASK] && RecreatingHandle)
1704Debug.Assert( !this.flagState[IS_NULL_MASK], "This method must be called when a Mask is provided." );
1824this.flagState[QUERY_BASE_TEXT] = true;
1831this.flagState[QUERY_BASE_TEXT] = false;
1844this.flagState[QUERY_BASE_TEXT] = true;
1851this.flagState[QUERY_BASE_TEXT] = false;
1862if( this.flagState[IS_NULL_MASK])
1905Debug.Assert( !this.flagState[IS_NULL_MASK], "This method must be called when a Mask is provided." );
1944this.flagState[QUERY_BASE_TEXT] = true;
1951this.flagState[QUERY_BASE_TEXT] = false;
1964this.flagState[QUERY_BASE_TEXT] = true;
1971this.flagState[QUERY_BASE_TEXT] = false;
1983Debug.Assert( !this.flagState[IS_NULL_MASK], "This method must be called when a Mask is provided." );
2020if( this.flagState[IS_NULL_MASK]&& this.maskedTextProvider.IsPassword )
2049if( this.flagState[IS_NULL_MASK])
2060this.flagState[HANDLE_KEY_PRESS] = false;
2068this.flagState[INSERT_TOGGLED] = !this.flagState[INSERT_TOGGLED];
2096this.flagState[HANDLE_KEY_PRESS] = false;
2135if( !this.flagState[HANDLE_KEY_PRESS] )
2137this.flagState[HANDLE_KEY_PRESS] = true;
2182if( this.flagState[IS_NULL_MASK])
2189if( !this.flagState[HANDLE_KEY_PRESS] )
2191this.flagState[HANDLE_KEY_PRESS] = true;
2259if (this.flagState[IME_COMPLETING])
2261this.flagState[IME_COMPLETING] = false;
2264if( this.flagState[IME_ENDING_COMPOSITION] )
2266this.flagState[IME_ENDING_COMPOSITION] = false;
2291Debug.Assert( !this.flagState[IS_NULL_MASK], "This method must be called when a Mask is provided." );
2366bool queryBaseText = this.flagState[QUERY_BASE_TEXT];
2367this.flagState[QUERY_BASE_TEXT] = false;
2374this.flagState[QUERY_BASE_TEXT] = queryBaseText;
2383Debug.Assert( !this.flagState[IS_NULL_MASK], "This method must be called when a Mask is provided." );
2513Debug.Assert( !this.flagState[IS_NULL_MASK], "This method must be called when a Mask is provided." );
2545if (!this.flagState[IS_NULL_MASK]&& this.maskedTextProvider.MaskCompleted == false)
2553if( !this.flagState[IS_NULL_MASK]) // replace prompt with space.
2625Debug.Assert( !this.flagState[IS_NULL_MASK], "This method must be called when a Mask is provided." );
2713if (this.flagState[IS_NULL_MASK])
2774if( this.flagState[IS_NULL_MASK] && textOnInitializingMask == null)
2851if( this.flagState[IS_NULL_MASK] )
2853this.flagState[IS_NULL_MASK] = false;
2910this.flagState[QUERY_BASE_TEXT] = true;
2933this.flagState[QUERY_BASE_TEXT] = false;
2970Debug.Assert( !this.flagState[IS_NULL_MASK], "This method must be called when a Mask is provided." );
2990Debug.Assert( !this.flagState[IS_NULL_MASK], "This method must be called when a Mask is provided." );
3038Debug.Assert( !this.flagState[IS_NULL_MASK], "This method must be called when a Mask is provided." );
3070if (this.flagState[IME_ENDING_COMPOSITION])
3073return this.flagState[IME_COMPLETING];
3087Debug.Assert( !this.flagState[IS_NULL_MASK], "This method must be called when a Mask is provided." );
3146Debug.Assert( !this.flagState[IS_NULL_MASK], "This method must be called when a Mask is provided." );
3224if( this.flagState[IS_NULL_MASK])
3240this.flagState[IME_ENDING_COMPOSITION] = true;
3290Debug.Assert( !this.flagState[IS_NULL_MASK], "This method must be called when a Mask is provided." );
3309Debug.Assert( !this.flagState[IS_NULL_MASK], "This method must be called when a Mask is provided." );