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
- RelationalExpressions.cs
- _ConnectOverlappedAsyncResult.cs
- FontDialog.cs
- HostingEnvironmentSection.cs
- EventListener.cs
- BuildDependencySet.cs
- BinarySerializer.cs
- FormatException.cs
- DesignerHost.cs
- PenCursorManager.cs
- QilScopedVisitor.cs
- LogReserveAndAppendState.cs
- Highlights.cs
- XhtmlBasicValidatorAdapter.cs
- WaitHandleCannotBeOpenedException.cs
- CollaborationHelperFunctions.cs
- VBIdentifierName.cs
- Normalization.cs
- QilInvokeLateBound.cs
- ChtmlTextWriter.cs
- ValidatingPropertiesEventArgs.cs
- DataColumnCollection.cs
- LogLogRecordHeader.cs
- OneWayChannelFactory.cs
- XmlKeywords.cs
- Parameter.cs
- OLEDB_Util.cs
- JpegBitmapEncoder.cs
- CodeAttachEventStatement.cs
- TiffBitmapEncoder.cs
- _MultipleConnectAsync.cs
- Cell.cs
- webeventbuffer.cs
- CheckBoxRenderer.cs
- Sql8ConformanceChecker.cs
- OperandQuery.cs
- DesignSurfaceEvent.cs
- NamedPipeConnectionPoolSettingsElement.cs
- AmbientProperties.cs
- Globals.cs
- XPathNode.cs
- UnsafeNativeMethodsTablet.cs
- EntitySqlQueryBuilder.cs
- RuleSettings.cs
- WindowsSecurityTokenAuthenticator.cs
- SchemaImporterExtensionElementCollection.cs
- MessageBuffer.cs
- PopupControlService.cs
- VerticalAlignConverter.cs
- ParameterElementCollection.cs
- DateTime.cs
- ChangePassword.cs
- BaseCollection.cs
- DataRelation.cs
- VisualStyleInformation.cs
- RangeBase.cs
- ApplicationHost.cs
- OdbcPermission.cs
- DataGridColumnHeaderAutomationPeer.cs
- DataMemberConverter.cs
- SkinBuilder.cs
- ExpressionParser.cs
- ToolStripDropDownClosingEventArgs.cs
- DbXmlEnabledProviderManifest.cs
- DropDownButton.cs
- ProviderCollection.cs
- SetIterators.cs
- SchemaTableColumn.cs
- DataMember.cs
- DivideByZeroException.cs
- PriorityQueue.cs
- NativeMethodsOther.cs
- GatewayDefinition.cs
- RayMeshGeometry3DHitTestResult.cs
- SessionChannels.cs
- XmlSchemaSimpleTypeUnion.cs
- DynamicHyperLink.cs
- Decimal.cs
- ServicePointManager.cs
- DragEvent.cs
- XmlSerializerFactory.cs
- ActivityBuilderHelper.cs
- SizeAnimationClockResource.cs
- SecurityStandardsManager.cs
- panel.cs
- SqlTypesSchemaImporter.cs
- ArcSegment.cs
- GeneralTransform.cs
- JsonSerializer.cs
- WorkflowApplicationAbortedEventArgs.cs
- RSAPKCS1SignatureFormatter.cs
- CodeGotoStatement.cs
- ByteRangeDownloader.cs
- DynamicILGenerator.cs
- CodeGenerator.cs
- ZipFileInfoCollection.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- CompiledIdentityConstraint.cs
- SectionVisual.cs
- PhysicalAddress.cs