Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- COSERVERINFO.cs
- XmlSchemaComplexContentRestriction.cs
- ImageFormat.cs
- MLangCodePageEncoding.cs
- DataPagerField.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- ListSortDescriptionCollection.cs
- DataGridViewTextBoxColumn.cs
- ToolStripSplitButton.cs
- IntegrationExceptionEventArgs.cs
- DataGridViewColumn.cs
- DesignBindingConverter.cs
- X509SecurityToken.cs
- HTMLTagNameToTypeMapper.cs
- AsyncResult.cs
- AnnotationStore.cs
- PolicyChain.cs
- ButtonChrome.cs
- HMACRIPEMD160.cs
- DataBindingCollection.cs
- DesignerUtility.cs
- DBConnection.cs
- Module.cs
- PresentationAppDomainManager.cs
- ImageIndexEditor.cs
- XmlLanguageConverter.cs
- XmlWrappingReader.cs
- MonthChangedEventArgs.cs
- SoapSchemaImporter.cs
- DataRowExtensions.cs
- ControlValuePropertyAttribute.cs
- x509utils.cs
- EditableTreeList.cs
- AssertSection.cs
- UnsafeNativeMethods.cs
- ValueCollectionParameterReader.cs
- RubberbandSelector.cs
- ConfigurationSectionCollection.cs
- EmptyCollection.cs
- TableChangeProcessor.cs
- EmptyEnumerator.cs
- Visual.cs
- AnnouncementInnerClientCD1.cs
- ProtocolsConfigurationHandler.cs
- Pointer.cs
- PointConverter.cs
- TextElement.cs
- DataFieldConverter.cs
- AttachedPropertyInfo.cs
- WmlControlAdapter.cs
- Exceptions.cs
- SystemResources.cs
- SocketAddress.cs
- FilteredReadOnlyMetadataCollection.cs
- NativeMethods.cs
- DesignerHelpers.cs
- Context.cs
- SessionSwitchEventArgs.cs
- XmlElement.cs
- DrawingServices.cs
- ConnectionsZone.cs
- RoleManagerSection.cs
- HtmlAnchor.cs
- _NativeSSPI.cs
- InstalledFontCollection.cs
- CacheMemory.cs
- XpsDocumentEvent.cs
- CustomErrorsSectionWrapper.cs
- AdornerDecorator.cs
- XmlValidatingReader.cs
- WsdlBuildProvider.cs
- _OSSOCK.cs
- DataGridParentRows.cs
- PackageFilter.cs
- XsltSettings.cs
- VisualState.cs
- XmlStreamStore.cs
- WebPartCatalogCloseVerb.cs
- IdentifierService.cs
- StandardOleMarshalObject.cs
- xamlnodes.cs
- MenuEventArgs.cs
- XmlDataDocument.cs
- CustomWebEventKey.cs
- PolicyLevel.cs
- CustomMenuItemCollection.cs
- StrongTypingException.cs
- SourceCollection.cs
- MethodBuilder.cs
- XmlUnspecifiedAttribute.cs
- ConfigXmlSignificantWhitespace.cs
- Axis.cs
- XmlBinaryReader.cs
- FileDataSourceCache.cs
- SettingsPropertyIsReadOnlyException.cs
- XmlSignificantWhitespace.cs
- Decorator.cs
- PageOrientation.cs
- StateBag.cs
- InputElement.cs