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
- ReadWriteSpinLock.cs
- Section.cs
- DoubleCollectionValueSerializer.cs
- Executor.cs
- ContainerParagraph.cs
- FlowLayoutPanel.cs
- DataTemplate.cs
- DefaultProxySection.cs
- EditorPartChrome.cs
- TextTreeRootTextBlock.cs
- TransactionFlowBindingElementImporter.cs
- XamlFigureLengthSerializer.cs
- DateTimeSerializationSection.cs
- SoapSchemaImporter.cs
- CollectionViewGroupRoot.cs
- DateTimeFormatInfoScanner.cs
- CapabilitiesRule.cs
- SqlReferenceCollection.cs
- WebPartConnectionsEventArgs.cs
- ComEventsMethod.cs
- UrlMappingCollection.cs
- SiteMap.cs
- VerticalAlignConverter.cs
- XmlSchemaException.cs
- EncodingTable.cs
- ConfigurationLocation.cs
- DefaultValueConverter.cs
- RuleCache.cs
- ConfigurationValues.cs
- Pen.cs
- GregorianCalendar.cs
- HttpListenerTimeoutManager.cs
- Funcletizer.cs
- IApplicationTrustManager.cs
- RequestCache.cs
- HttpCookieCollection.cs
- Axis.cs
- assertwrapper.cs
- SizeChangedEventArgs.cs
- UInt32Storage.cs
- Convert.cs
- ReadOnlyObservableCollection.cs
- DnsPermission.cs
- DefaultPrintController.cs
- DbgUtil.cs
- SafeLocalMemHandle.cs
- WindowsRichEdit.cs
- DiscoveryReferences.cs
- RegexRunner.cs
- TextEndOfLine.cs
- AuthenticationException.cs
- RelationshipNavigation.cs
- DataAdapter.cs
- FunctionDescription.cs
- PartialArray.cs
- XmlObjectSerializerReadContextComplex.cs
- XamlReaderHelper.cs
- WebPartZoneCollection.cs
- StyleBamlRecordReader.cs
- PersistenceContextEnlistment.cs
- TemplateEditingService.cs
- _ListenerRequestStream.cs
- PrivilegeNotHeldException.cs
- SizeFConverter.cs
- MessageQueueInstaller.cs
- ColorContext.cs
- DataTableClearEvent.cs
- XmlSchemaAttributeGroup.cs
- SearchForVirtualItemEventArgs.cs
- BamlLocalizableResourceKey.cs
- DataColumnMappingCollection.cs
- BitSet.cs
- ScriptServiceAttribute.cs
- FragmentQueryKB.cs
- UserCancellationException.cs
- DesignTimeXamlWriter.cs
- XPathScanner.cs
- MimeFormReflector.cs
- SecurityHeaderElementInferenceEngine.cs
- EntryWrittenEventArgs.cs
- TraceListener.cs
- FixUp.cs
- SystemIPAddressInformation.cs
- BitmapEffectDrawing.cs
- CoreSwitches.cs
- Interop.cs
- TextCompositionEventArgs.cs
- DataTable.cs
- SettingsPropertyNotFoundException.cs
- TraceSource.cs
- ToolStripDropDown.cs
- QueryInterceptorAttribute.cs
- HttpServerVarsCollection.cs
- HandlerFactoryWrapper.cs
- SystemIPInterfaceStatistics.cs
- BaseCAMarshaler.cs
- MissingSatelliteAssemblyException.cs
- SettingsContext.cs
- FunctionNode.cs
- SafeHandles.cs