Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / LabelEditEvent.cs / 1 / LabelEditEvent.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; ////// /// public class LabelEditEventArgs : EventArgs { private readonly string label; private readonly int item; private bool cancelEdit = false; ////// Provides data for the ///event. /// /// /// public LabelEditEventArgs(int item) { this.item = item; this.label = null; } ////// Initializes a new instance /// of the ///class with the specified /// index to the to edit. /// /// /// public LabelEditEventArgs(int item, string label) { this.item = item; this.label = label; } ////// Initializes a new instance /// of the ///class with the specified index to the being /// edited and the new text for the label of the . /// /// /// public string Label { get { return label; } } ////// Gets the new text assigned to the label of the ///. /// /// /// public int Item { get { return item; } } ////// Gets the zero-based index of the ///containing the label to /// edit. /// /// /// public bool CancelEdit { get { return cancelEdit; } set { cancelEdit = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or sets a value indicating whether changes made to the label of /// the ///should be canceled. /// // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; ////// /// public class LabelEditEventArgs : EventArgs { private readonly string label; private readonly int item; private bool cancelEdit = false; ////// Provides data for the ///event. /// /// /// public LabelEditEventArgs(int item) { this.item = item; this.label = null; } ////// Initializes a new instance /// of the ///class with the specified /// index to the to edit. /// /// /// public LabelEditEventArgs(int item, string label) { this.item = item; this.label = label; } ////// Initializes a new instance /// of the ///class with the specified index to the being /// edited and the new text for the label of the . /// /// /// public string Label { get { return label; } } ////// Gets the new text assigned to the label of the ///. /// /// /// public int Item { get { return item; } } ////// Gets the zero-based index of the ///containing the label to /// edit. /// /// /// public bool CancelEdit { get { return cancelEdit; } set { cancelEdit = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or sets a value indicating whether changes made to the label of /// the ///should be canceled. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- KeyValuePairs.cs
- StringStorage.cs
- DataSourceCache.cs
- ClockController.cs
- RequestTimeoutManager.cs
- WebHeaderCollection.cs
- LinqDataSourceUpdateEventArgs.cs
- _BufferOffsetSize.cs
- OrderedDictionary.cs
- HttpProtocolImporter.cs
- ReadWriteObjectLock.cs
- CmsUtils.cs
- X509InitiatorCertificateServiceElement.cs
- SqlInfoMessageEvent.cs
- ProtocolsSection.cs
- MailWebEventProvider.cs
- _AcceptOverlappedAsyncResult.cs
- ResourceCategoryAttribute.cs
- XmlSerializer.cs
- EnlistmentState.cs
- ListView.cs
- FileFormatException.cs
- MimeWriter.cs
- ArrayConverter.cs
- DataPointer.cs
- MulticastOption.cs
- VerificationAttribute.cs
- Pen.cs
- Missing.cs
- DetailsViewInsertEventArgs.cs
- WebBrowserDocumentCompletedEventHandler.cs
- WsatServiceAddress.cs
- InertiaTranslationBehavior.cs
- Cell.cs
- RectangleF.cs
- DataServiceBehavior.cs
- ResourceWriter.cs
- JavaScriptString.cs
- SwitchCase.cs
- DataGridToolTip.cs
- RightsManagementErrorHandler.cs
- TagElement.cs
- ECDsaCng.cs
- Errors.cs
- ObjectListItem.cs
- RelatedPropertyManager.cs
- WorkflowIdleElement.cs
- AliasExpr.cs
- TreePrinter.cs
- ImageSource.cs
- DataTableReaderListener.cs
- EnterpriseServicesHelper.cs
- TextTreeExtractElementUndoUnit.cs
- FixedSOMLineCollection.cs
- LoginName.cs
- Line.cs
- KeyValueSerializer.cs
- DiscardableAttribute.cs
- Function.cs
- ResolveInfo.cs
- UnicodeEncoding.cs
- DropDownList.cs
- MediaCommands.cs
- DataControlPagerLinkButton.cs
- XmlParserContext.cs
- _NegotiateClient.cs
- ExtensibleClassFactory.cs
- CalendarTable.cs
- EnvelopedPkcs7.cs
- CollectionChangedEventManager.cs
- TransactionTraceIdentifier.cs
- PKCS1MaskGenerationMethod.cs
- ItemCheckedEvent.cs
- SettingsProviderCollection.cs
- WinFormsComponentEditor.cs
- EntityDataSourceChangedEventArgs.cs
- ShapeTypeface.cs
- BoundPropertyEntry.cs
- GeometryHitTestResult.cs
- CreateUserWizardAutoFormat.cs
- SapiRecognizer.cs
- OutOfMemoryException.cs
- RoleGroup.cs
- OlePropertyStructs.cs
- StreamWriter.cs
- XmlBaseReader.cs
- RoutedEventHandlerInfo.cs
- OptimizedTemplateContentHelper.cs
- _NTAuthentication.cs
- CustomBindingElement.cs
- GcSettings.cs
- Wildcard.cs
- InfoCardClaim.cs
- PreviousTrackingServiceAttribute.cs
- KeyGesture.cs
- InternalPermissions.cs
- AssemblyBuilder.cs
- COAUTHINFO.cs
- ListenerSingletonConnectionReader.cs
- TogglePatternIdentifiers.cs