| File: System\Windows\Forms\Controls\TextBox\MaskInputRejectedEventArgs.cs | Web Access |
| Project: src\winforms\src\System.Windows.Forms\System.Windows.Forms.csproj (System.Windows.Forms) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel; namespace System.Windows.Forms; /// <summary> /// Provides data for the MaskInputRejected event. /// </summary> public class MaskInputRejectedEventArgs : EventArgs { public MaskInputRejectedEventArgs(int position, MaskedTextResultHint rejectionHint) { Position = position; RejectionHint = rejectionHint; } /// <summary> /// The position where the test failed the mask constraint. /// </summary> public int Position { get; } /// <summary> /// Retrieves a hint on why the input is rejected. /// </summary> public MaskedTextResultHint RejectionHint { get; } }