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
- CodeGeneratorAttribute.cs
- InvalidCommandTreeException.cs
- HtmlTernaryTree.cs
- PageCodeDomTreeGenerator.cs
- GradientBrush.cs
- ForceCopyBuildProvider.cs
- HtmlListAdapter.cs
- AppPool.cs
- SubMenuStyleCollection.cs
- _RequestCacheProtocol.cs
- PropertyTabChangedEvent.cs
- FilterElement.cs
- DefaultPrintController.cs
- ViewKeyConstraint.cs
- SqlComparer.cs
- GlobalProxySelection.cs
- AudioBase.cs
- DaylightTime.cs
- MaterialCollection.cs
- DesignerLinkAdapter.cs
- OSFeature.cs
- ApplicationServiceHelper.cs
- URI.cs
- ResourcePermissionBaseEntry.cs
- BamlTreeUpdater.cs
- CodeConditionStatement.cs
- TransformerInfo.cs
- GroupBox.cs
- X509Chain.cs
- JournalEntryStack.cs
- PropertyConverter.cs
- DynamicILGenerator.cs
- ThreadExceptionDialog.cs
- WindowsStatic.cs
- ContentOperations.cs
- OdbcDataReader.cs
- SystemEvents.cs
- SQLMembershipProvider.cs
- TypedTableBaseExtensions.cs
- ClassicBorderDecorator.cs
- RedBlackList.cs
- IndexedEnumerable.cs
- MouseEventArgs.cs
- GenericRootAutomationPeer.cs
- ModelFunction.cs
- AppDomain.cs
- HttpContextServiceHost.cs
- SqlDataSourceQueryEditorForm.cs
- FileInfo.cs
- HttpRequestBase.cs
- WsatProxy.cs
- PackWebResponse.cs
- ManifestSignatureInformation.cs
- RuntimeConfig.cs
- GradientBrush.cs
- TranslateTransform3D.cs
- ActivityWithResultConverter.cs
- Transform3DCollection.cs
- DesigntimeLicenseContextSerializer.cs
- VectorKeyFrameCollection.cs
- SqlDataSource.cs
- WindowPattern.cs
- XmlAttributeCollection.cs
- MbpInfo.cs
- SQLByte.cs
- FixedTextContainer.cs
- SemanticResolver.cs
- NamedPipeTransportManager.cs
- TextTreeFixupNode.cs
- XmlNodeChangedEventArgs.cs
- SecurityToken.cs
- ProxySimple.cs
- DataColumnCollection.cs
- MatcherBuilder.cs
- PathSegment.cs
- ButtonColumn.cs
- AsyncDataRequest.cs
- WindowsImpersonationContext.cs
- ScriptRef.cs
- EntityEntry.cs
- ApplicationInfo.cs
- ProviderCollection.cs
- LabelAutomationPeer.cs
- ACE.cs
- MetadataItemEmitter.cs
- ToolStripProgressBar.cs
- Journal.cs
- IMembershipProvider.cs
- KeyToListMap.cs
- WorkflowRuntime.cs
- UnsafeNativeMethodsCLR.cs
- RectAnimation.cs
- Int32.cs
- ConnectionInterfaceCollection.cs
- Rotation3D.cs
- PrincipalPermission.cs
- ObjectDataSourceDisposingEventArgs.cs
- SequenceDesigner.cs
- Helpers.cs
- FolderBrowserDialog.cs