Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / LabelEditEvent.cs / 1305376 / 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. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClientFormsAuthenticationCredentials.cs
- XmlTypeAttribute.cs
- TabletDeviceInfo.cs
- ToReply.cs
- ToolStripProgressBar.cs
- UpdateProgress.cs
- EndOfStreamException.cs
- CryptoApi.cs
- PathGradientBrush.cs
- RemotingException.cs
- WebPartConnectionsConnectVerb.cs
- ThreadAttributes.cs
- LayoutTableCell.cs
- CssClassPropertyAttribute.cs
- PointLightBase.cs
- BulletedListEventArgs.cs
- Parameter.cs
- ContextMenu.cs
- ConsumerConnectionPoint.cs
- DependencyObjectProvider.cs
- CodeTypeReferenceCollection.cs
- ChameleonKey.cs
- SharedStatics.cs
- WSSecureConversation.cs
- BuilderPropertyEntry.cs
- ExternalException.cs
- ImageKeyConverter.cs
- CreateInstanceBinder.cs
- IdnMapping.cs
- MsmqMessageProperty.cs
- TabletDeviceInfo.cs
- RangeValidator.cs
- TreeView.cs
- ETagAttribute.cs
- VirtualPath.cs
- RuntimeHelpers.cs
- ProfileService.cs
- ResourcesChangeInfo.cs
- CapabilitiesAssignment.cs
- RootCodeDomSerializer.cs
- Command.cs
- itemelement.cs
- XmlSchemaSimpleTypeRestriction.cs
- RightsManagementInformation.cs
- EventKeyword.cs
- BrowserDefinition.cs
- ACE.cs
- WindowsListBox.cs
- RegexGroup.cs
- ObjectDataSourceDisposingEventArgs.cs
- BinaryObjectInfo.cs
- PropertyNames.cs
- TextDecorationCollection.cs
- MediaElement.cs
- CreateUserWizardStep.cs
- ListBindableAttribute.cs
- AxHost.cs
- SSmlParser.cs
- StorageTypeMapping.cs
- SurrogateChar.cs
- MediaScriptCommandRoutedEventArgs.cs
- Graphics.cs
- ErrorWrapper.cs
- WindowsFormsHelpers.cs
- WebPermission.cs
- DateRangeEvent.cs
- Operand.cs
- CommandField.cs
- rsa.cs
- _TransmitFileOverlappedAsyncResult.cs
- WebServiceReceiveDesigner.cs
- SqlClientWrapperSmiStream.cs
- ClientSettings.cs
- NativeMethods.cs
- XmlSerializableServices.cs
- DateTimeConverter2.cs
- DeploymentSection.cs
- MimeAnyImporter.cs
- ToolboxItemAttribute.cs
- QuaternionKeyFrameCollection.cs
- CodePageUtils.cs
- ChtmlImageAdapter.cs
- CharacterHit.cs
- dataobject.cs
- UInt16Converter.cs
- DoubleUtil.cs
- MappingModelBuildProvider.cs
- MimeMapping.cs
- SchemaObjectWriter.cs
- EdmValidator.cs
- EntityContainerEntitySetDefiningQuery.cs
- TypedServiceChannelBuilder.cs
- bindurihelper.cs
- SafeFileMapViewHandle.cs
- ClientTargetSection.cs
- ControlBuilder.cs
- RandomNumberGenerator.cs
- Socket.cs
- MissingMethodException.cs
- Int64Storage.cs