Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Label.cs
- PointValueSerializer.cs
- ListViewAutomationPeer.cs
- BitmapEffectInputData.cs
- WebPermission.cs
- OdbcException.cs
- ToolStripItemEventArgs.cs
- OleDbWrapper.cs
- OleDbCommand.cs
- TextAutomationPeer.cs
- SchemaImporter.cs
- RuntimeConfigLKG.cs
- UICuesEvent.cs
- ArrayList.cs
- CodeAccessPermission.cs
- RequestCacheManager.cs
- XmlDocumentType.cs
- SecurityPolicySection.cs
- SiteMapNodeItemEventArgs.cs
- HtmlTableCell.cs
- BypassElement.cs
- DoubleLinkListEnumerator.cs
- ClientApiGenerator.cs
- ValueQuery.cs
- Queue.cs
- TextEffect.cs
- StylusPointPropertyUnit.cs
- ComplexLine.cs
- TypePropertyEditor.cs
- CodeSnippetExpression.cs
- XmlSignificantWhitespace.cs
- RuleInfoComparer.cs
- Knowncolors.cs
- ResourceDefaultValueAttribute.cs
- CodePageEncoding.cs
- PersonalizablePropertyEntry.cs
- DateTimeFormat.cs
- ListQueryResults.cs
- X509CertificateRecipientServiceCredential.cs
- WebPartConnectionsConfigureVerb.cs
- SortedDictionary.cs
- ReadOnlyDictionary.cs
- X509Extension.cs
- RealProxy.cs
- RtfControlWordInfo.cs
- XmlnsDictionary.cs
- TextElementEnumerator.cs
- PlatformCulture.cs
- OpCopier.cs
- SiteMembershipCondition.cs
- IgnoreDeviceFilterElementCollection.cs
- PtsHost.cs
- SQLInt32.cs
- SecureStringHasher.cs
- PageWrapper.cs
- AccessibilityApplicationManager.cs
- MgmtConfigurationRecord.cs
- QuaternionAnimation.cs
- ParserOptions.cs
- TimeSpanSecondsConverter.cs
- BitmapPalettes.cs
- QueueAccessMode.cs
- WindowsContainer.cs
- CodeAccessPermission.cs
- WorkflowRuntimeService.cs
- LinkUtilities.cs
- ButtonChrome.cs
- DBProviderConfigurationHandler.cs
- AngleUtil.cs
- TimeSpanFormat.cs
- RowSpanVector.cs
- StorageRoot.cs
- ExcludePathInfo.cs
- BigInt.cs
- FormattedTextSymbols.cs
- DeclaredTypeValidator.cs
- QualificationDataItem.cs
- ResourcePermissionBaseEntry.cs
- DataContext.cs
- XsdDataContractImporter.cs
- RowsCopiedEventArgs.cs
- _Rfc2616CacheValidators.cs
- FileSecurity.cs
- SelectedDatesCollection.cs
- DataGridItemEventArgs.cs
- CurrentChangedEventManager.cs
- BuildProvidersCompiler.cs
- DictionaryBase.cs
- JsonDataContract.cs
- GcSettings.cs
- ConnectionInterfaceCollection.cs
- LinkedList.cs
- ResetableIterator.cs
- DocumentEventArgs.cs
- DataContext.cs
- XmlQualifiedNameTest.cs
- CompilerGeneratedAttribute.cs
- IISUnsafeMethods.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- DefaultExpression.cs