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
- InertiaExpansionBehavior.cs
- StrongNameIdentityPermission.cs
- XmlSerializableServices.cs
- VisualCollection.cs
- SemanticResolver.cs
- DrawToolTipEventArgs.cs
- BinaryFormatterWriter.cs
- EventBuilder.cs
- SmtpSection.cs
- CodeMethodInvokeExpression.cs
- CodeEntryPointMethod.cs
- XsdBuilder.cs
- MsmqBindingElementBase.cs
- DataViewSetting.cs
- MachineKeySection.cs
- ColumnMapTranslator.cs
- MergablePropertyAttribute.cs
- DocumentOrderQuery.cs
- TableItemStyle.cs
- CheckBoxStandardAdapter.cs
- ScalarOps.cs
- ReadOnlyAttribute.cs
- DataListComponentEditor.cs
- GACIdentityPermission.cs
- ToolTipService.cs
- MainMenu.cs
- LeftCellWrapper.cs
- MenuItemCollectionEditor.cs
- WebPartDisplayModeCancelEventArgs.cs
- AttachInfo.cs
- SystemNetworkInterface.cs
- Select.cs
- StringConverter.cs
- ValidationErrorInfo.cs
- NonParentingControl.cs
- MILUtilities.cs
- COMException.cs
- IBuiltInEvidence.cs
- ProtocolViolationException.cs
- GlyphInfoList.cs
- DataColumnMappingCollection.cs
- Debug.cs
- HttpListener.cs
- WsdlInspector.cs
- Codec.cs
- SqlPersonalizationProvider.cs
- IconBitmapDecoder.cs
- DebuggerAttributes.cs
- SystemPens.cs
- WorkflowItemsPresenter.cs
- PageEventArgs.cs
- MarkupExtensionParser.cs
- SemanticBasicElement.cs
- GenericArgumentsUpdater.cs
- CompoundFileIOPermission.cs
- WaitingCursor.cs
- TextTrailingWordEllipsis.cs
- SynchronizationContext.cs
- EventProxy.cs
- panel.cs
- SharedPerformanceCounter.cs
- DataListItemEventArgs.cs
- OrthographicCamera.cs
- EventSetter.cs
- XmlTextEncoder.cs
- JpegBitmapEncoder.cs
- RelationshipConstraintValidator.cs
- KeyEvent.cs
- Int32KeyFrameCollection.cs
- Rotation3DKeyFrameCollection.cs
- FatalException.cs
- EnumerableRowCollection.cs
- PackageRelationshipSelector.cs
- EDesignUtil.cs
- HttpFileCollection.cs
- UpdateException.cs
- ConsoleCancelEventArgs.cs
- ObjectConverter.cs
- MarshalByRefObject.cs
- WebEventCodes.cs
- SiteIdentityPermission.cs
- QilLoop.cs
- SqlDataSourceView.cs
- PinnedBufferMemoryStream.cs
- WpfXamlType.cs
- PrintController.cs
- UserControlCodeDomTreeGenerator.cs
- IOThreadTimer.cs
- StringInfo.cs
- StylusTip.cs
- WebPartTracker.cs
- DataListItemEventArgs.cs
- SplayTreeNode.cs
- PagedControl.cs
- NativeMethods.cs
- Ipv6Element.cs
- EventWaitHandleSecurity.cs
- CompressionTransform.cs
- ChildTable.cs
- SimpleMailWebEventProvider.cs