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
- RepeaterItemCollection.cs
- Crc32.cs
- WebContentFormatHelper.cs
- ITextView.cs
- WinInet.cs
- MessageBox.cs
- ClientUrlResolverWrapper.cs
- SqlDataReaderSmi.cs
- LockCookie.cs
- SpeechSynthesizer.cs
- Vector3DKeyFrameCollection.cs
- PartialTrustVisibleAssembliesSection.cs
- CriticalHandle.cs
- TagPrefixInfo.cs
- WmlMobileTextWriter.cs
- FuncTypeConverter.cs
- RoleManagerModule.cs
- SqlConnectionPoolProviderInfo.cs
- ToolStripComboBox.cs
- NativeMethods.cs
- ColumnBinding.cs
- OleDbErrorCollection.cs
- DataRow.cs
- NetworkAddressChange.cs
- DataTable.cs
- CacheRequest.cs
- TableRowGroupCollection.cs
- ObjectAnimationBase.cs
- IdentitySection.cs
- EventWaitHandle.cs
- CharEntityEncoderFallback.cs
- DesignTimeTemplateParser.cs
- Vector3D.cs
- SerializationUtilities.cs
- KnownIds.cs
- ItemsPanelTemplate.cs
- TransactionManager.cs
- BufferAllocator.cs
- HitTestResult.cs
- DefaultValueTypeConverter.cs
- SQLChars.cs
- XslNumber.cs
- DataGridViewBindingCompleteEventArgs.cs
- XamlVector3DCollectionSerializer.cs
- ChildDocumentBlock.cs
- LineServicesRun.cs
- RegexNode.cs
- SqlTopReducer.cs
- DiagnosticsElement.cs
- Constraint.cs
- CharEnumerator.cs
- Region.cs
- StoragePropertyMapping.cs
- InitiatorSessionSymmetricTransportSecurityProtocol.cs
- PassportAuthenticationModule.cs
- DesignTimeData.cs
- RangeValidator.cs
- DesignTimeVisibleAttribute.cs
- NetworkCredential.cs
- WebZone.cs
- QueryStringParameter.cs
- ListenDesigner.cs
- GrowingArray.cs
- RepeaterItem.cs
- ContentOperations.cs
- ListBox.cs
- DeploymentExceptionMapper.cs
- Symbol.cs
- EntityDescriptor.cs
- DocComment.cs
- TiffBitmapDecoder.cs
- CompModSwitches.cs
- BamlCollectionHolder.cs
- DesignerTransactionCloseEvent.cs
- CreateUserWizardDesigner.cs
- AstNode.cs
- IfAction.cs
- Set.cs
- DbProviderServices.cs
- SetIterators.cs
- DeviceContext2.cs
- SQLUtility.cs
- DrawingContextDrawingContextWalker.cs
- SinglePageViewer.cs
- SafeCryptoHandles.cs
- RawStylusActions.cs
- BitmapPalettes.cs
- ObjectDataSourceFilteringEventArgs.cs
- CheckBoxPopupAdapter.cs
- EntitySetDataBindingList.cs
- IPEndPointCollection.cs
- WebPartDeleteVerb.cs
- UriSectionReader.cs
- WriteableBitmap.cs
- XmlAttributes.cs
- FileRecordSequenceHelper.cs
- ReadWriteObjectLock.cs
- PeerContact.cs
- IssuanceTokenProviderBase.cs
- FormatterConverter.cs