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
- XComponentModel.cs
- JpegBitmapDecoder.cs
- DecoderBestFitFallback.cs
- GlyphTypeface.cs
- ConvertEvent.cs
- SingleObjectCollection.cs
- BindValidator.cs
- _FtpControlStream.cs
- ReadWriteObjectLock.cs
- CreateUserErrorEventArgs.cs
- SystemNetworkInterface.cs
- DataControlFieldCell.cs
- TokenDescriptor.cs
- ConfigurationStrings.cs
- AppModelKnownContentFactory.cs
- BrowserDefinitionCollection.cs
- ThreadPoolTaskScheduler.cs
- SourceElementsCollection.cs
- AsyncStreamReader.cs
- EpmAttributeNameBuilder.cs
- XmlMemberMapping.cs
- RectangleGeometry.cs
- SystemColors.cs
- ResourceReferenceKeyNotFoundException.cs
- ExpressionBuilderCollection.cs
- SerialStream.cs
- Utils.cs
- PriorityBinding.cs
- Atom10FormatterFactory.cs
- ImmutableCollection.cs
- DataServiceQueryException.cs
- BuilderPropertyEntry.cs
- BitArray.cs
- Odbc32.cs
- CommandConverter.cs
- ChannelBuilder.cs
- CodeNamespaceCollection.cs
- OrthographicCamera.cs
- DataTrigger.cs
- URI.cs
- Oci.cs
- DiagnosticsConfigurationHandler.cs
- DataGridViewRowHeaderCell.cs
- ActivitySurrogateSelector.cs
- MediaPlayerState.cs
- RoutedEventConverter.cs
- VScrollProperties.cs
- CultureInfoConverter.cs
- Visual3D.cs
- PriorityChain.cs
- ElementHost.cs
- ToolStripGripRenderEventArgs.cs
- followingsibling.cs
- TextBox.cs
- IsolationInterop.cs
- AudienceUriMode.cs
- MimeBasePart.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ViewStateModeByIdAttribute.cs
- QuaternionAnimation.cs
- XmlDataSourceView.cs
- SpecialFolderEnumConverter.cs
- CreateInstanceBinder.cs
- PointAnimation.cs
- Boolean.cs
- WinFormsSpinner.cs
- SerialErrors.cs
- ProtocolViolationException.cs
- controlskin.cs
- InputReportEventArgs.cs
- MeshGeometry3D.cs
- AssociatedControlConverter.cs
- URLMembershipCondition.cs
- IntegerValidatorAttribute.cs
- RegisteredExpandoAttribute.cs
- CFStream.cs
- XmlNamedNodeMap.cs
- ConnectionManagementSection.cs
- HitTestWithPointDrawingContextWalker.cs
- AnnotationDocumentPaginator.cs
- METAHEADER.cs
- AmbiguousMatchException.cs
- ConfigurationElement.cs
- FileSystemEventArgs.cs
- DesignerAdapterUtil.cs
- KeyPressEvent.cs
- TabletDeviceInfo.cs
- OperatingSystem.cs
- OleDbStruct.cs
- XPathBinder.cs
- PatternMatcher.cs
- ColorInterpolationModeValidation.cs
- SmtpAuthenticationManager.cs
- ValidatedControlConverter.cs
- AppDomainAttributes.cs
- SessionStateContainer.cs
- _WinHttpWebProxyDataBuilder.cs
- ThreadAbortException.cs
- XmlHierarchicalEnumerable.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs