Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / LabelEditEvent.cs / 1 / 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
- ReachNamespaceInfo.cs
- ZipArchive.cs
- WebPartEventArgs.cs
- ToolboxItemAttribute.cs
- StyleHelper.cs
- UrlParameterReader.cs
- DefaultPrintController.cs
- serverconfig.cs
- OdbcConnectionHandle.cs
- DataSvcMapFile.cs
- BinaryObjectInfo.cs
- KeyFrames.cs
- UrlMappingsSection.cs
- XsltContext.cs
- OutputCacheSettingsSection.cs
- Thread.cs
- DelegatingMessage.cs
- DateTimePicker.cs
- BamlResourceSerializer.cs
- TriggerActionCollection.cs
- WebUtil.cs
- Menu.cs
- StylusPointDescription.cs
- PathSegment.cs
- XamlStream.cs
- ScriptingJsonSerializationSection.cs
- Keywords.cs
- Types.cs
- LogStore.cs
- ActivityFunc.cs
- RelativeSource.cs
- DiagnosticTraceSource.cs
- MsmqInputChannelListenerBase.cs
- SelectorItemAutomationPeer.cs
- GenericTextProperties.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- MaskInputRejectedEventArgs.cs
- CompensationTokenData.cs
- HeaderUtility.cs
- RadialGradientBrush.cs
- MinMaxParagraphWidth.cs
- SqlWriter.cs
- DesignerActionPropertyItem.cs
- PersonalizationProviderHelper.cs
- DelegatedStream.cs
- Command.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- StreamReader.cs
- Zone.cs
- wmiprovider.cs
- GradientStop.cs
- Italic.cs
- XmlSchemaCompilationSettings.cs
- EventLogEntry.cs
- GrowingArray.cs
- EncoderReplacementFallback.cs
- FileLevelControlBuilderAttribute.cs
- DefaultDiscoveryServiceExtension.cs
- CancellationScope.cs
- UnmanagedBitmapWrapper.cs
- NameSpaceExtractor.cs
- DataPagerCommandEventArgs.cs
- Mappings.cs
- TypeResolver.cs
- CaseDesigner.xaml.cs
- DataFormat.cs
- AttachedAnnotation.cs
- streamingZipPartStream.cs
- BlockExpression.cs
- BamlTreeNode.cs
- HeaderedItemsControl.cs
- ToolStripOverflow.cs
- WebControlAdapter.cs
- EdmProviderManifest.cs
- DnsElement.cs
- KerberosRequestorSecurityToken.cs
- KeyBinding.cs
- XmlRawWriter.cs
- CodeParameterDeclarationExpressionCollection.cs
- PolicyUnit.cs
- ThreadStartException.cs
- Site.cs
- EraserBehavior.cs
- PageThemeCodeDomTreeGenerator.cs
- TableAutomationPeer.cs
- WebPartEditVerb.cs
- IpcClientChannel.cs
- UnsafeNetInfoNativeMethods.cs
- SqlProvider.cs
- QueryInterceptorAttribute.cs
- AccessDataSource.cs
- DataSetUtil.cs
- JsonDataContract.cs
- InternalRelationshipCollection.cs
- PropertyPanel.cs
- OutputCacheProviderCollection.cs
- QuaternionAnimation.cs
- DefaultAssemblyResolver.cs
- SynchronizationLockException.cs
- WindowsGraphics.cs