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
- DiagnosticsConfigurationHandler.cs
- OrderedDictionaryStateHelper.cs
- DrawingImage.cs
- GenerateHelper.cs
- MouseEventArgs.cs
- EntityCommandExecutionException.cs
- ErrorRuntimeConfig.cs
- ElementMarkupObject.cs
- SafeTimerHandle.cs
- DynamicFilterExpression.cs
- XmlDataSourceNodeDescriptor.cs
- Control.cs
- ExtendedPropertyInfo.cs
- StringPropertyBuilder.cs
- RemotingConfiguration.cs
- KerberosTokenFactoryCredential.cs
- CodeDirectiveCollection.cs
- GPPOINTF.cs
- MetadataArtifactLoaderCompositeResource.cs
- ButtonFieldBase.cs
- IndependentlyAnimatedPropertyMetadata.cs
- DataTrigger.cs
- ValueOfAction.cs
- WizardStepBase.cs
- DiscoveryEndpoint.cs
- XhtmlBasicPageAdapter.cs
- Pen.cs
- ResourceBinder.cs
- UntypedNullExpression.cs
- RadioButtonPopupAdapter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- DataBoundControlAdapter.cs
- IPEndPoint.cs
- TableTextElementCollectionInternal.cs
- ParallelDesigner.cs
- PartManifestEntry.cs
- StructuredTypeInfo.cs
- ScriptingProfileServiceSection.cs
- PropertyEmitterBase.cs
- ClientTargetCollection.cs
- DictionaryEditChange.cs
- RegexCharClass.cs
- MarshalDirectiveException.cs
- ClassicBorderDecorator.cs
- TraceContextRecord.cs
- MessageLoggingFilterTraceRecord.cs
- SharedUtils.cs
- sortedlist.cs
- RequiredAttributeAttribute.cs
- VirtualizingStackPanel.cs
- Journal.cs
- TypeGeneratedEventArgs.cs
- ConstrainedGroup.cs
- __TransparentProxy.cs
- CompleteWizardStep.cs
- EventSetter.cs
- FuncCompletionCallbackWrapper.cs
- followingquery.cs
- ITextView.cs
- StrongNamePublicKeyBlob.cs
- COM2PropertyDescriptor.cs
- SafeNativeMethods.cs
- SByte.cs
- XmlMapping.cs
- SqlBuilder.cs
- ReadOnlyDictionary.cs
- ADMembershipProvider.cs
- ParameterInfo.cs
- StringToken.cs
- WindowsToolbarItemAsMenuItem.cs
- DeferredTextReference.cs
- QilXmlReader.cs
- PrePrepareMethodAttribute.cs
- MultiTrigger.cs
- XmlTextReaderImplHelpers.cs
- ResourceReader.cs
- ContentValidator.cs
- Char.cs
- AvTraceFormat.cs
- Binding.cs
- TextTreeText.cs
- XmlHierarchicalEnumerable.cs
- SpeechAudioFormatInfo.cs
- UInt32Storage.cs
- InstanceDescriptor.cs
- TableLayoutStyle.cs
- CompilerGeneratedAttribute.cs
- TransactionFormatter.cs
- RemotingConfiguration.cs
- ButtonRenderer.cs
- EmptyEnumerator.cs
- RecognizedWordUnit.cs
- CheckBoxStandardAdapter.cs
- RepeaterItemCollection.cs
- ImmutableDispatchRuntime.cs
- ControlIdConverter.cs
- DocumentXPathNavigator.cs
- ProfileParameter.cs
- LockedAssemblyCache.cs
- NotifyIcon.cs