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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertyMapper.cs
- SoapCodeExporter.cs
- TypeSchema.cs
- BinaryUtilClasses.cs
- VectorValueSerializer.cs
- ClickablePoint.cs
- PropertyManager.cs
- HtmlFormParameterWriter.cs
- HttpApplicationFactory.cs
- SqlComparer.cs
- SettingsContext.cs
- FontInfo.cs
- WinInet.cs
- Freezable.cs
- CodePageEncoding.cs
- CheckBoxDesigner.cs
- MessageBox.cs
- LinkUtilities.cs
- XmlArrayAttribute.cs
- PreservationFileReader.cs
- XmlTextReaderImplHelpers.cs
- ViewPort3D.cs
- CollectionChangedEventManager.cs
- DetailsViewInsertEventArgs.cs
- PrivilegedConfigurationManager.cs
- WebHttpElement.cs
- CellRelation.cs
- CardSpacePolicyElement.cs
- ScriptingScriptResourceHandlerSection.cs
- BuildResult.cs
- FixedHighlight.cs
- ResourceProperty.cs
- XmlSchemaComplexContentExtension.cs
- ApplicationServiceManager.cs
- OrCondition.cs
- FunctionUpdateCommand.cs
- SQLDouble.cs
- NoClickablePointException.cs
- Command.cs
- ListSortDescription.cs
- MonitoringDescriptionAttribute.cs
- ToolboxItemCollection.cs
- MutexSecurity.cs
- GeneralTransformCollection.cs
- TreeWalker.cs
- MarkupCompiler.cs
- GeometryGroup.cs
- Speller.cs
- FormatException.cs
- BamlLocalizabilityResolver.cs
- StyleBamlTreeBuilder.cs
- XmlTextEncoder.cs
- MetadataSerializer.cs
- TreeView.cs
- BamlWriter.cs
- Point3DValueSerializer.cs
- SendingRequestEventArgs.cs
- StackSpiller.Temps.cs
- RowUpdatingEventArgs.cs
- SortAction.cs
- MessageQueueInstaller.cs
- DataGridTextBox.cs
- ConfigurationManagerHelper.cs
- ConstructorBuilder.cs
- AlignmentXValidation.cs
- HtmlEmptyTagControlBuilder.cs
- HtmlEncodedRawTextWriter.cs
- BmpBitmapDecoder.cs
- BitmapImage.cs
- PointHitTestResult.cs
- WebPartConnection.cs
- DataGridSortCommandEventArgs.cs
- RightNameExpirationInfoPair.cs
- ImportedNamespaceContextItem.cs
- ListDesigner.cs
- FactoryMaker.cs
- QilSortKey.cs
- RoleManagerSection.cs
- FillBehavior.cs
- RSAPKCS1SignatureDeformatter.cs
- _NegotiateClient.cs
- ZeroOpNode.cs
- IpcClientChannel.cs
- LinearGradientBrush.cs
- DrawToolTipEventArgs.cs
- IPAddressCollection.cs
- SimpleRecyclingCache.cs
- XhtmlBasicPanelAdapter.cs
- Pen.cs
- ServiceContractViewControl.cs
- ErrorInfoXmlDocument.cs
- PrintPreviewGraphics.cs
- XmlComment.cs
- Queue.cs
- GeometryGroup.cs
- TextRangeAdaptor.cs
- RelationshipEnd.cs
- StorageAssociationTypeMapping.cs
- LinkClickEvent.cs
- HttpServerChannel.cs