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
- ProfileSettings.cs
- AndMessageFilter.cs
- CommonDialog.cs
- CircleHotSpot.cs
- OleDbParameterCollection.cs
- CodeDomConfigurationHandler.cs
- InvokeProviderWrapper.cs
- ProxyGenerationError.cs
- StateBag.cs
- XmlSecureResolver.cs
- SqlDuplicator.cs
- LockedHandleGlyph.cs
- TreeView.cs
- ValueChangedEventManager.cs
- RegularExpressionValidator.cs
- UriSection.cs
- StylusSystemGestureEventArgs.cs
- Statements.cs
- FrameworkContentElement.cs
- SqlDataSourceStatusEventArgs.cs
- WebServiceData.cs
- ImageListDesigner.cs
- Duration.cs
- EntityDescriptor.cs
- Repeater.cs
- Pair.cs
- SemaphoreSecurity.cs
- CompressedStack.cs
- Translator.cs
- DeferredSelectedIndexReference.cs
- MulticastNotSupportedException.cs
- Track.cs
- Image.cs
- InputLanguageManager.cs
- TraceContext.cs
- EntityUtil.cs
- BufferedGraphics.cs
- ChannelPoolSettingsElement.cs
- Stack.cs
- SettingsAttributes.cs
- ActiveXHost.cs
- BatchParser.cs
- ManifestSignedXml.cs
- TreeNodeConverter.cs
- RouteParser.cs
- ConfigurationCollectionAttribute.cs
- StyleXamlParser.cs
- StdValidatorsAndConverters.cs
- UdpDiscoveryEndpointElement.cs
- CompiledRegexRunnerFactory.cs
- HtmlInputReset.cs
- WebServiceResponse.cs
- AppDomainProtocolHandler.cs
- ClientBuildManager.cs
- HttpCookiesSection.cs
- ActiveXSerializer.cs
- ControlPaint.cs
- TrustSection.cs
- CodeTryCatchFinallyStatement.cs
- DocobjHost.cs
- FunctionQuery.cs
- CodePropertyReferenceExpression.cs
- HtmlTextViewAdapter.cs
- TextClipboardData.cs
- GetIndexBinder.cs
- CheckBoxPopupAdapter.cs
- StandardCommands.cs
- basevalidator.cs
- XmlSerializerNamespaces.cs
- ProjectionQueryOptionExpression.cs
- PartManifestEntry.cs
- ResourceBinder.cs
- SelectionHighlightInfo.cs
- ConfigurationElementProperty.cs
- ScriptingAuthenticationServiceSection.cs
- StrongNameUtility.cs
- MenuItemBinding.cs
- ZoomPercentageConverter.cs
- RunWorkerCompletedEventArgs.cs
- TextElementCollectionHelper.cs
- DataSourceGeneratorException.cs
- XmlSerializerNamespaces.cs
- BamlResourceSerializer.cs
- ArgumentNullException.cs
- PeerApplicationLaunchInfo.cs
- UnsafeNativeMethods.cs
- ApplicationInterop.cs
- HostedHttpRequestAsyncResult.cs
- ResourceDisplayNameAttribute.cs
- Activator.cs
- ResourceLoader.cs
- FilterEventArgs.cs
- CSharpCodeProvider.cs
- EventLogEntry.cs
- ControlFilterExpression.cs
- AdapterUtil.cs
- SqlWriter.cs
- UIElementAutomationPeer.cs
- HuffModule.cs
- OleCmdHelper.cs