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
- DynamicResourceExtensionConverter.cs
- KeySpline.cs
- XmlTypeAttribute.cs
- MsmqHostedTransportConfiguration.cs
- WorkflowInstanceRecord.cs
- RemoteX509AsymmetricSecurityKey.cs
- ActiveXContainer.cs
- TcpProcessProtocolHandler.cs
- XmlMtomReader.cs
- WorkflowPrinting.cs
- __Filters.cs
- Constant.cs
- ConfigurationManager.cs
- RunInstallerAttribute.cs
- CqlQuery.cs
- RuleSettingsCollection.cs
- DataColumnPropertyDescriptor.cs
- SqlDataSourceCache.cs
- OpCodes.cs
- ScriptMethodAttribute.cs
- ObjectDisposedException.cs
- CodeGenerator.cs
- TypeTypeConverter.cs
- DataViewSetting.cs
- WSFederationHttpBindingCollectionElement.cs
- RoleGroupCollection.cs
- DataSvcMapFile.cs
- DrawingGroupDrawingContext.cs
- MethodImplAttribute.cs
- XmlWriter.cs
- PageThemeParser.cs
- Size3DConverter.cs
- SapiGrammar.cs
- DynamicResourceExtension.cs
- ShapingWorkspace.cs
- XmlWrappingWriter.cs
- InternalDispatchObject.cs
- ServiceOperationParameter.cs
- HtmlImageAdapter.cs
- ChtmlCalendarAdapter.cs
- DataServicePagingProviderWrapper.cs
- FlowDocumentPageViewerAutomationPeer.cs
- MulticastNotSupportedException.cs
- CodeSubDirectoriesCollection.cs
- IconConverter.cs
- StringAnimationUsingKeyFrames.cs
- QuadraticBezierSegment.cs
- ParameterCollection.cs
- XmlEventCache.cs
- namescope.cs
- QueueAccessMode.cs
- Trace.cs
- PanelDesigner.cs
- RangeValuePatternIdentifiers.cs
- JournalEntryListConverter.cs
- DiscoveryRequestHandler.cs
- EdmPropertyAttribute.cs
- Function.cs
- VirtualStackFrame.cs
- TempEnvironment.cs
- HostUtils.cs
- MSAAWinEventWrap.cs
- InputEventArgs.cs
- ObjectDataSourceView.cs
- TableAdapterManagerMethodGenerator.cs
- IfJoinedCondition.cs
- ConfigurationSettings.cs
- ThemeableAttribute.cs
- DocumentSchemaValidator.cs
- TextMarkerSource.cs
- RoleGroup.cs
- XPathAncestorIterator.cs
- SqlUtils.cs
- CodeIdentifier.cs
- DescendantBaseQuery.cs
- MethodBuilder.cs
- ParserContext.cs
- AddInPipelineAttributes.cs
- UriWriter.cs
- EventLogPermissionAttribute.cs
- SqlError.cs
- InputLanguageEventArgs.cs
- SpAudioStreamWrapper.cs
- ParameterCollection.cs
- ProxyManager.cs
- XmlComment.cs
- ColorMap.cs
- MembershipPasswordException.cs
- ColorContextHelper.cs
- userdatakeys.cs
- SmtpMail.cs
- ObjectMemberMapping.cs
- NodeLabelEditEvent.cs
- ScriptReferenceEventArgs.cs
- SplitContainerDesigner.cs
- NumericUpDown.cs
- ClientUtils.cs
- SecureUICommand.cs
- MdbDataFileEditor.cs
- DataGrid.cs