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
- LicFileLicenseProvider.cs
- EntityDataSource.cs
- SiteMapPath.cs
- WindowsPen.cs
- ObjectAssociationEndMapping.cs
- StyleSelector.cs
- BCLDebug.cs
- CodeRemoveEventStatement.cs
- FamilyCollection.cs
- RepeatInfo.cs
- SettingsPropertyValue.cs
- SplineKeyFrames.cs
- DataGridViewAdvancedBorderStyle.cs
- IISMapPath.cs
- DBCSCodePageEncoding.cs
- ListBoxItemAutomationPeer.cs
- ToolStripLabel.cs
- ValidatingReaderNodeData.cs
- PageCodeDomTreeGenerator.cs
- XmlSchemaAttribute.cs
- InternalControlCollection.cs
- CompositeFontInfo.cs
- CodeTypeReferenceExpression.cs
- QueryStringParameter.cs
- CqlGenerator.cs
- RichTextBox.cs
- InfiniteTimeSpanConverter.cs
- FormattedTextSymbols.cs
- CollectionExtensions.cs
- ForEachAction.cs
- TemplateBindingExpressionConverter.cs
- SplitterDesigner.cs
- SystemIcons.cs
- WebPartConnectionsConnectVerb.cs
- XmlSchemaChoice.cs
- DuplexChannelFactory.cs
- _NestedSingleAsyncResult.cs
- CompiledRegexRunner.cs
- TagMapInfo.cs
- ToolboxComponentsCreatingEventArgs.cs
- CodeVariableReferenceExpression.cs
- Dump.cs
- DataContractSerializerElement.cs
- ProxyWebPart.cs
- CodeGenerator.cs
- Popup.cs
- RuleInfoComparer.cs
- LineVisual.cs
- WCFBuildProvider.cs
- CodeDelegateInvokeExpression.cs
- AccessText.cs
- XNameTypeConverter.cs
- DoubleLinkList.cs
- CodeGroup.cs
- FormClosedEvent.cs
- MemberPath.cs
- CommandLineParser.cs
- CriticalExceptions.cs
- ManagedIStream.cs
- XmlArrayItemAttributes.cs
- UnmanagedBitmapWrapper.cs
- CodeValidator.cs
- DetailsView.cs
- PageRouteHandler.cs
- DebugView.cs
- AnyReturnReader.cs
- SqlNotificationRequest.cs
- CaseInsensitiveHashCodeProvider.cs
- EntityDataSourceWizardForm.cs
- BuildProvider.cs
- TypeName.cs
- EventEntry.cs
- Signature.cs
- ConfigurationValidatorAttribute.cs
- FloaterBaseParagraph.cs
- Assert.cs
- CellRelation.cs
- AmbientProperties.cs
- SyntaxCheck.cs
- ExtensionElement.cs
- SrgsItemList.cs
- VBCodeProvider.cs
- XmlObjectSerializerReadContext.cs
- SimpleHandlerBuildProvider.cs
- ConstructorNeedsTagAttribute.cs
- WebPartHeaderCloseVerb.cs
- TrackBarDesigner.cs
- Path.cs
- MailBnfHelper.cs
- ToolStripComboBox.cs
- TraceContext.cs
- ObjectComplexPropertyMapping.cs
- TextRenderingModeValidation.cs
- XmlSecureResolver.cs
- MailSettingsSection.cs
- HeaderedItemsControl.cs
- RuleConditionDialog.cs
- Stackframe.cs
- HelpHtmlBuilder.cs
- WinEventHandler.cs