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
- ToolStripSplitStackLayout.cs
- ProvideValueServiceProvider.cs
- MonthCalendar.cs
- StrongTypingException.cs
- WebPartManager.cs
- KnownTypesProvider.cs
- PreviewControlDesigner.cs
- TextModifier.cs
- HttpCookie.cs
- StorageBasedPackageProperties.cs
- CompositeFontFamily.cs
- Pair.cs
- _NegoState.cs
- DataGridViewAccessibleObject.cs
- RijndaelManagedTransform.cs
- ElementInit.cs
- GuidTagList.cs
- SettingsPropertyCollection.cs
- FontDialog.cs
- DataSourceExpression.cs
- COM2TypeInfoProcessor.cs
- SynchronousChannel.cs
- DynamicPhysicalDiscoSearcher.cs
- Metadata.cs
- input.cs
- SEHException.cs
- CacheSection.cs
- XmlSchemaImport.cs
- XmlAnyAttributeAttribute.cs
- EventLogPermissionAttribute.cs
- DeflateInput.cs
- VarRefManager.cs
- DispatcherExceptionEventArgs.cs
- DbConnectionStringCommon.cs
- ObjectDataSourceEventArgs.cs
- QuaternionAnimationUsingKeyFrames.cs
- followingquery.cs
- XsdDateTime.cs
- ModelItemCollection.cs
- Native.cs
- sqlser.cs
- InstanceDataCollection.cs
- Ref.cs
- CalendarBlackoutDatesCollection.cs
- UIHelper.cs
- NetSectionGroup.cs
- GradientSpreadMethodValidation.cs
- ReflectionPermission.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- WebConfigurationHost.cs
- KeyFrames.cs
- NetWebProxyFinder.cs
- MissingFieldException.cs
- Queue.cs
- EntityConnectionStringBuilder.cs
- InputLanguage.cs
- AppDomainGrammarProxy.cs
- smtppermission.cs
- QueryProcessor.cs
- RegisteredArrayDeclaration.cs
- ControlAdapter.cs
- TranslateTransform3D.cs
- RawTextInputReport.cs
- GenericIdentity.cs
- RegexFCD.cs
- HierarchicalDataBoundControl.cs
- SmiContextFactory.cs
- DBSqlParserTable.cs
- ApplicationServicesHostFactory.cs
- SystemEvents.cs
- InternalTypeHelper.cs
- GlyphCache.cs
- SQLGuidStorage.cs
- TreeView.cs
- SecUtil.cs
- DynamicResourceExtension.cs
- PropagatorResult.cs
- GridPattern.cs
- LoginUtil.cs
- FieldMetadata.cs
- ImportContext.cs
- XamlFigureLengthSerializer.cs
- StrokeNodeData.cs
- ApplicationBuildProvider.cs
- ListBox.cs
- TransformBlockRequest.cs
- RepeaterCommandEventArgs.cs
- Listbox.cs
- PropertyInformation.cs
- FontDialog.cs
- ToggleButtonAutomationPeer.cs
- AddingNewEventArgs.cs
- DetailsViewActionList.cs
- MetafileHeaderWmf.cs
- RuleSetCollection.cs
- SqlParameterCollection.cs
- DataGridTable.cs
- SQLDateTimeStorage.cs
- DbConnectionInternal.cs
- ToolStripArrowRenderEventArgs.cs