Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / MaskInputRejectedEventArgs.cs / 1305376 / MaskInputRejectedEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.ComponentModel; using System.Diagnostics; ////// MaskInputRejectedEventArgs. Provides data for the MaskInputRejected event. /// public class MaskInputRejectedEventArgs : EventArgs { private int position; MaskedTextResultHint hint; public MaskInputRejectedEventArgs(int position, MaskedTextResultHint rejectionHint) { Debug.Assert(!MaskedTextProvider.GetOperationResultFromHint(rejectionHint), "Rejection hint is not on a failure."); this.position = position; this.hint = rejectionHint; } ////// The position where the test failed the mask constraint. /// public int Position { get { return this.position; } } ////// Retreives a hint on why the input is rejected. /// public MaskedTextResultHint RejectionHint { get { return this.hint; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.ComponentModel; using System.Diagnostics; ////// MaskInputRejectedEventArgs. Provides data for the MaskInputRejected event. /// public class MaskInputRejectedEventArgs : EventArgs { private int position; MaskedTextResultHint hint; public MaskInputRejectedEventArgs(int position, MaskedTextResultHint rejectionHint) { Debug.Assert(!MaskedTextProvider.GetOperationResultFromHint(rejectionHint), "Rejection hint is not on a failure."); this.position = position; this.hint = rejectionHint; } ////// The position where the test failed the mask constraint. /// public int Position { get { return this.position; } } ////// Retreives a hint on why the input is rejected. /// public MaskedTextResultHint RejectionHint { get { return this.hint; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlBinaryReader.cs
- DesignerAdRotatorAdapter.cs
- RsaSecurityToken.cs
- Compress.cs
- XmlSchemaResource.cs
- SubMenuStyleCollection.cs
- SecondaryIndexDefinition.cs
- NotificationContext.cs
- RequestUriProcessor.cs
- DispatchWrapper.cs
- UiaCoreTypesApi.cs
- ToolStripDropDownButton.cs
- SmtpNtlmAuthenticationModule.cs
- TextEditorDragDrop.cs
- ScrollBarRenderer.cs
- DataGridViewHitTestInfo.cs
- PeerValidationBehavior.cs
- AdornerLayer.cs
- ErrorProvider.cs
- HtmlUtf8RawTextWriter.cs
- TreeView.cs
- SafeArrayRankMismatchException.cs
- Environment.cs
- UmAlQuraCalendar.cs
- XmlWrappingReader.cs
- MapPathBasedVirtualPathProvider.cs
- ItemPager.cs
- SecureEnvironment.cs
- DateTimeFormat.cs
- ViewStateAttachedPropertyFeature.cs
- ClientBuildManagerCallback.cs
- HtmlInputPassword.cs
- IntegerCollectionEditor.cs
- DataServiceQueryException.cs
- ExeConfigurationFileMap.cs
- User.cs
- VarRefManager.cs
- TextElement.cs
- ControlTemplate.cs
- NetworkInformationException.cs
- ViewStateModeByIdAttribute.cs
- HoistedLocals.cs
- DynamicPropertyHolder.cs
- PathSegmentCollection.cs
- BindingsCollection.cs
- XPathException.cs
- ListControlBuilder.cs
- TreeView.cs
- CharAnimationUsingKeyFrames.cs
- GlyphCollection.cs
- RadioButtonFlatAdapter.cs
- FigureParagraph.cs
- DocumentNUp.cs
- StructuralObject.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- HostedImpersonationContext.cs
- ToolStripLabel.cs
- ReaderContextStackData.cs
- Mutex.cs
- HashRepartitionStream.cs
- State.cs
- SortKey.cs
- ObjectMemberMapping.cs
- TimeZoneNotFoundException.cs
- DelegatedStream.cs
- LayoutUtils.cs
- WebPartDisplayMode.cs
- nulltextcontainer.cs
- TypeResolvingOptions.cs
- PreProcessor.cs
- EmptyControlCollection.cs
- StringKeyFrameCollection.cs
- InternalEnumValidator.cs
- UntrustedRecipientException.cs
- Action.cs
- KeyboardNavigation.cs
- ReadWriteObjectLock.cs
- ValidatingPropertiesEventArgs.cs
- EntityContainer.cs
- ParallelTimeline.cs
- DataIdProcessor.cs
- CharConverter.cs
- LambdaCompiler.Logical.cs
- PageStatePersister.cs
- Graphics.cs
- HttpProcessUtility.cs
- FontNamesConverter.cs
- PathGeometry.cs
- GZipDecoder.cs
- GlyphCache.cs
- CallTemplateAction.cs
- TextServicesCompartmentEventSink.cs
- VerbConverter.cs
- WinInet.cs
- ExitEventArgs.cs
- HttpDictionary.cs
- StrokeSerializer.cs
- SerializableAttribute.cs
- IpcServerChannel.cs
- SafeWaitHandle.cs