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
- DBDataPermission.cs
- ClientCultureInfo.cs
- DataTemplateKey.cs
- LinqExpressionNormalizer.cs
- PersianCalendar.cs
- DataTemplateKey.cs
- WsatRegistrationHeader.cs
- XmlUrlResolver.cs
- PageBuildProvider.cs
- FactoryMaker.cs
- ExpandSegmentCollection.cs
- RegexFCD.cs
- WhitespaceSignificantCollectionAttribute.cs
- NodeFunctions.cs
- HttpModulesSection.cs
- Model3DCollection.cs
- AuthenticationModuleElement.cs
- KeyNotFoundException.cs
- EdmRelationshipRoleAttribute.cs
- NetTcpBindingCollectionElement.cs
- DataError.cs
- UnicodeEncoding.cs
- Nullable.cs
- ModelServiceImpl.cs
- XmlProcessingInstruction.cs
- StrongNameHelpers.cs
- ObjectViewEntityCollectionData.cs
- Translator.cs
- MeasureItemEvent.cs
- XPathQilFactory.cs
- UnmanagedHandle.cs
- CompilationSection.cs
- DefaultObjectMappingItemCollection.cs
- CatchBlock.cs
- HtmlInputSubmit.cs
- AnnotationAuthorChangedEventArgs.cs
- ExpressionLexer.cs
- XamlWriter.cs
- Debug.cs
- AuthenticationSection.cs
- QueryValue.cs
- CustomAttribute.cs
- SystemUdpStatistics.cs
- SqlClientMetaDataCollectionNames.cs
- UnsafeNativeMethods.cs
- OutputCacheSection.cs
- Bezier.cs
- DataGridTextBox.cs
- InvalidOperationException.cs
- XPathChildIterator.cs
- MailMessageEventArgs.cs
- Pen.cs
- QilExpression.cs
- StreamAsIStream.cs
- TextTreeFixupNode.cs
- UIHelper.cs
- MetadataUtilsSmi.cs
- TableLayoutRowStyleCollection.cs
- ValueUnavailableException.cs
- PersistenceMetadataNamespace.cs
- HighlightVisual.cs
- Convert.cs
- ItemsPanelTemplate.cs
- CanonicalizationDriver.cs
- ToolStripItemGlyph.cs
- ReversePositionQuery.cs
- ContentPresenter.cs
- HtmlTableCell.cs
- PointAnimation.cs
- DynamicDocumentPaginator.cs
- WaitHandleCannotBeOpenedException.cs
- DetectRunnableInstancesTask.cs
- PrimitiveXmlSerializers.cs
- SQLResource.cs
- GridViewUpdatedEventArgs.cs
- ProfileWorkflowElement.cs
- AutomationPeer.cs
- DependencyPropertyKind.cs
- LOSFormatter.cs
- WebPartEditorCancelVerb.cs
- BaseParser.cs
- SqlUnionizer.cs
- DBConnectionString.cs
- Point3DIndependentAnimationStorage.cs
- CompressStream.cs
- AdvancedBindingEditor.cs
- SafeRightsManagementEnvironmentHandle.cs
- XhtmlConformanceSection.cs
- PropertyEmitter.cs
- ValidateNames.cs
- ResourceExpression.cs
- Transform3DGroup.cs
- NestedContainer.cs
- RenderingEventArgs.cs
- DistributedTransactionPermission.cs
- CompiledQueryCacheEntry.cs
- RegisteredArrayDeclaration.cs
- RequestCachingSection.cs
- Geometry.cs
- URL.cs