Code:
/ 4.0 / 4.0 / 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. /// // 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
- AssociatedControlConverter.cs
- ReceiveActivity.cs
- DirectoryRootQuery.cs
- XmlSchemaGroupRef.cs
- RequestQueryProcessor.cs
- RIPEMD160.cs
- TextEditorCopyPaste.cs
- SemaphoreSecurity.cs
- ConvertTextFrag.cs
- DocumentViewerBase.cs
- PersonalizationState.cs
- ParsedAttributeCollection.cs
- HttpModuleActionCollection.cs
- Set.cs
- _TimerThread.cs
- ClaimTypes.cs
- SoapObjectInfo.cs
- DirectoryNotFoundException.cs
- TargetControlTypeCache.cs
- FormViewPagerRow.cs
- ResourceExpression.cs
- DnsPermission.cs
- TabControlToolboxItem.cs
- FrameworkElementAutomationPeer.cs
- Query.cs
- SqlDeflator.cs
- EdmError.cs
- RangeContentEnumerator.cs
- TreeView.cs
- HttpCookieCollection.cs
- RsaSecurityKey.cs
- ListSortDescriptionCollection.cs
- CommandBinding.cs
- Barrier.cs
- DiscreteKeyFrames.cs
- RbTree.cs
- _DisconnectOverlappedAsyncResult.cs
- log.cs
- ConnectionStringsExpressionBuilder.cs
- StringArrayConverter.cs
- HttpCacheParams.cs
- XmlAttributeCollection.cs
- ReadOnlyCollection.cs
- Guid.cs
- StyleSelector.cs
- SystemInfo.cs
- Number.cs
- WebPartEventArgs.cs
- Operand.cs
- ReferentialConstraint.cs
- Faults.cs
- CodeExpressionCollection.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- ConnectionConsumerAttribute.cs
- QueryExpr.cs
- TextDecorations.cs
- DetailsViewAutoFormat.cs
- HostingEnvironmentSection.cs
- RunInstallerAttribute.cs
- EventHandlers.cs
- XamlPoint3DCollectionSerializer.cs
- XmlSchemaElement.cs
- MessageQueueInstaller.cs
- Inflater.cs
- DocumentAutomationPeer.cs
- PartitionedStreamMerger.cs
- AccessKeyManager.cs
- RelationshipDetailsRow.cs
- PrintPreviewGraphics.cs
- ContextBase.cs
- processwaithandle.cs
- XmlWrappingWriter.cs
- UpdatePanelTriggerCollection.cs
- ColumnTypeConverter.cs
- SerializerWriterEventHandlers.cs
- MenuTracker.cs
- Validator.cs
- AmbientLight.cs
- WebEvents.cs
- XPathParser.cs
- DispatcherEventArgs.cs
- WorkflowWebHostingModule.cs
- XDRSchema.cs
- Size.cs
- ComboBoxRenderer.cs
- WebZone.cs
- DrawingBrush.cs
- RulePatternOps.cs
- COM2ComponentEditor.cs
- XsltArgumentList.cs
- AdCreatedEventArgs.cs
- ManifestResourceInfo.cs
- CodeSnippetCompileUnit.cs
- RulePatternOps.cs
- QilPatternFactory.cs
- PhysicalAddress.cs
- ScriptingAuthenticationServiceSection.cs
- Site.cs
- MarshalByRefObject.cs
- ColorContext.cs