Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- Adorner.cs
- WebRequest.cs
- ReadOnlyAttribute.cs
- FontWeightConverter.cs
- TableLayoutSettingsTypeConverter.cs
- EncryptedPackage.cs
- ControlTemplate.cs
- PointCollectionConverter.cs
- CollectionChangeEventArgs.cs
- NotConverter.cs
- WebBrowserNavigatedEventHandler.cs
- DecimalAnimationBase.cs
- HealthMonitoringSection.cs
- ConsoleTraceListener.cs
- ColumnReorderedEventArgs.cs
- OdbcTransaction.cs
- SystemFonts.cs
- GetLedgerRequest.cs
- OleDbConnection.cs
- SqlInfoMessageEvent.cs
- FixedSOMElement.cs
- HttpConfigurationSystem.cs
- dataobject.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- DesignerDataStoredProcedure.cs
- HeaderCollection.cs
- CmsInterop.cs
- ClientScriptManagerWrapper.cs
- ServicePointManager.cs
- ToolStripItemBehavior.cs
- ColumnMapVisitor.cs
- HttpException.cs
- TextBoxView.cs
- ObjectViewFactory.cs
- SimpleBitVector32.cs
- TdsEnums.cs
- GZipStream.cs
- Operand.cs
- WebPartVerbCollection.cs
- MatrixCamera.cs
- StateFinalizationDesigner.cs
- DataViewManager.cs
- RawStylusInputCustomDataList.cs
- SafeMILHandle.cs
- DataListItemCollection.cs
- MetadataUtilsSmi.cs
- RSAPKCS1KeyExchangeFormatter.cs
- TypeConstant.cs
- RuleSettings.cs
- PerfCounters.cs
- EventSinkHelperWriter.cs
- Section.cs
- InstallerTypeAttribute.cs
- ColumnMapCopier.cs
- TextParaClient.cs
- RightNameExpirationInfoPair.cs
- InputBuffer.cs
- ScrollEvent.cs
- KoreanCalendar.cs
- Thickness.cs
- ExtendedPropertyInfo.cs
- MenuItemBindingCollection.cs
- XmlNodeChangedEventManager.cs
- EpmContentDeSerializer.cs
- NetStream.cs
- HttpResponseInternalBase.cs
- Quad.cs
- ArrayHelper.cs
- FixedSOMTable.cs
- ManagementInstaller.cs
- SoapServerMethod.cs
- DiscoveryDocument.cs
- Quaternion.cs
- StateDesigner.Layouts.cs
- PrimitiveXmlSerializers.cs
- PersonalizationState.cs
- XmlSecureResolver.cs
- ByteFacetDescriptionElement.cs
- HttpContext.cs
- InfocardExtendedInformationEntry.cs
- PtsContext.cs
- _ListenerResponseStream.cs
- PlatformNotSupportedException.cs
- ConfigXmlAttribute.cs
- ConstraintStruct.cs
- OutputCache.cs
- XmlILAnnotation.cs
- ScrollContentPresenter.cs
- EntryWrittenEventArgs.cs
- AxWrapperGen.cs
- SystemWebCachingSectionGroup.cs
- PriorityRange.cs
- VolatileResourceManager.cs
- LinqDataSource.cs
- TreeViewEvent.cs
- ProfileServiceManager.cs
- DataServiceKeyAttribute.cs
- ThumbAutomationPeer.cs
- XmlQueryContext.cs
- StaticSiteMapProvider.cs