Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / MaskInputRejectedEventArgs.cs / 1 / 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
- ButtonField.cs
- HyperLink.cs
- XmlEntity.cs
- SettingsBase.cs
- QilLoop.cs
- PageAdapter.cs
- XmlSchemaComplexContentExtension.cs
- SpeechSynthesizer.cs
- DictionaryCustomTypeDescriptor.cs
- SecurityHelper.cs
- DataGridCellsPanel.cs
- InkCanvas.cs
- TimeSpanOrInfiniteConverter.cs
- OutgoingWebResponseContext.cs
- ImageSource.cs
- HostingPreferredMapPath.cs
- PathFigure.cs
- WebServiceHostFactory.cs
- CodeAttributeDeclarationCollection.cs
- HMACSHA512.cs
- ToolBarButtonClickEvent.cs
- Message.cs
- AccessKeyManager.cs
- UshortList2.cs
- FixedDSBuilder.cs
- HtmlUtf8RawTextWriter.cs
- InstanceData.cs
- WeakReferenceKey.cs
- TrustSection.cs
- OAVariantLib.cs
- Set.cs
- DeploymentSectionCache.cs
- ObjectDataSourceEventArgs.cs
- StylusButtonEventArgs.cs
- StickyNoteContentControl.cs
- MultipleCopiesCollection.cs
- shaperfactory.cs
- ProfileEventArgs.cs
- ClientSideProviderDescription.cs
- EntityProviderServices.cs
- Repeater.cs
- DockPanel.cs
- FixedSOMElement.cs
- DataDocumentXPathNavigator.cs
- CallSiteBinder.cs
- URL.cs
- TextTrailingCharacterEllipsis.cs
- EpmContentSerializerBase.cs
- ViewgenGatekeeper.cs
- BoundField.cs
- LinkConverter.cs
- BasicExpressionVisitor.cs
- TypeReference.cs
- AffineTransform3D.cs
- XmlNamedNodeMap.cs
- SerializationTrace.cs
- EntityViewGenerationAttribute.cs
- NamespaceCollection.cs
- TextElementAutomationPeer.cs
- ResourceBinder.cs
- WindowsIdentity.cs
- DataGridViewRowPrePaintEventArgs.cs
- WindowInteropHelper.cs
- MatrixTransform3D.cs
- SoapFormatExtensions.cs
- Vector3DValueSerializer.cs
- SecurityPermission.cs
- PolicyStatement.cs
- PathFigureCollection.cs
- ProfileSection.cs
- AuthenticatingEventArgs.cs
- AccessedThroughPropertyAttribute.cs
- PropertyTab.cs
- XmlSchemaSequence.cs
- HMACSHA384.cs
- FieldBuilder.cs
- Process.cs
- SafeArrayTypeMismatchException.cs
- EventEntry.cs
- VariableQuery.cs
- CustomGrammar.cs
- ElementMarkupObject.cs
- PrivateFontCollection.cs
- FtpWebRequest.cs
- TripleDES.cs
- OutgoingWebRequestContext.cs
- IPEndPoint.cs
- RequestDescription.cs
- HwndHost.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- ModelPerspective.cs
- PeerInvitationResponse.cs
- WorkingDirectoryEditor.cs
- PathTooLongException.cs
- ZipPackage.cs
- DataGridDetailsPresenterAutomationPeer.cs
- DataKey.cs
- XamlFigureLengthSerializer.cs
- WindowsFont.cs
- MessageBox.cs