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
- FlowDocumentScrollViewer.cs
- PassportAuthenticationModule.cs
- CloudCollection.cs
- ComponentManagerBroker.cs
- SwitchCase.cs
- SchemaObjectWriter.cs
- DataGridTextBoxColumn.cs
- UnsafeNativeMethods.cs
- NavigatingCancelEventArgs.cs
- UserPreferenceChangingEventArgs.cs
- IsolatedStoragePermission.cs
- SqlSelectStatement.cs
- SchemaNotation.cs
- SplashScreenNativeMethods.cs
- LinkButton.cs
- ClientData.cs
- DesignDataSource.cs
- CapabilitiesPattern.cs
- EncoderParameters.cs
- FileInfo.cs
- SettingsProperty.cs
- ScriptControl.cs
- HasCopySemanticsAttribute.cs
- SerializationInfoEnumerator.cs
- WebPartUtil.cs
- ControlEvent.cs
- RSAOAEPKeyExchangeFormatter.cs
- Section.cs
- Property.cs
- HandlerBase.cs
- TextViewSelectionProcessor.cs
- SQLRoleProvider.cs
- SplineKeyFrames.cs
- SrgsOneOf.cs
- ProgramPublisher.cs
- InternalBufferOverflowException.cs
- Stylesheet.cs
- WindowPattern.cs
- ValidationErrorCollection.cs
- AbstractSvcMapFileLoader.cs
- KeyEventArgs.cs
- OptionUsage.cs
- Walker.cs
- PointLight.cs
- CharUnicodeInfo.cs
- Polyline.cs
- ImportContext.cs
- PageSettings.cs
- EntitySetRetriever.cs
- HtmlUtf8RawTextWriter.cs
- ButtonChrome.cs
- AttachedPropertyBrowsableAttribute.cs
- grammarelement.cs
- SystemKeyConverter.cs
- ServiceDiscoveryBehavior.cs
- WorkflowWebService.cs
- BinaryWriter.cs
- PromptBuilder.cs
- MenuStrip.cs
- SByteStorage.cs
- PropertyFilter.cs
- ButtonChrome.cs
- EncodingNLS.cs
- ZipIOCentralDirectoryBlock.cs
- WorkflowFormatterBehavior.cs
- CollectionEditor.cs
- ChineseLunisolarCalendar.cs
- AssociationTypeEmitter.cs
- AdRotator.cs
- EncryptedHeaderXml.cs
- PropertyPath.cs
- ScriptIgnoreAttribute.cs
- __Error.cs
- EdmItemCollection.cs
- EnumerableRowCollection.cs
- BufferedStream.cs
- CompiledQueryCacheKey.cs
- HostingEnvironmentException.cs
- FixedFlowMap.cs
- SrgsGrammarCompiler.cs
- TextServicesCompartmentEventSink.cs
- login.cs
- filewebrequest.cs
- TextElementCollection.cs
- formatter.cs
- DynamicDocumentPaginator.cs
- SecurityContext.cs
- WebConfigurationHostFileChange.cs
- AssemblyFilter.cs
- DocumentViewerBaseAutomationPeer.cs
- FloaterBaseParagraph.cs
- ReferencedType.cs
- RangeBaseAutomationPeer.cs
- ContentType.cs
- PopupRoot.cs
- FunctionMappingTranslator.cs
- StringValueSerializer.cs
- DoubleAnimationUsingKeyFrames.cs
- UrlRoutingModule.cs
- CallTemplateAction.cs