Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SqlFormatter.cs
- TemplateColumn.cs
- login.cs
- DateTimeValueSerializerContext.cs
- DataColumn.cs
- RichTextBox.cs
- PageAsyncTaskManager.cs
- SqlClientPermission.cs
- ConfigurationException.cs
- StateMachineAction.cs
- PolyLineSegment.cs
- WorkflowMessageEventHandler.cs
- HelpKeywordAttribute.cs
- XmlMembersMapping.cs
- keycontainerpermission.cs
- EdmItemCollection.cs
- MetadataWorkspace.cs
- InputManager.cs
- RunWorkerCompletedEventArgs.cs
- StylusDownEventArgs.cs
- IRCollection.cs
- ExtendedProtectionPolicyElement.cs
- TypeDependencyAttribute.cs
- CodeTypeReferenceExpression.cs
- TextRunTypographyProperties.cs
- DataExpression.cs
- LinqDataSourceInsertEventArgs.cs
- WebPartDisplayModeCollection.cs
- MarginsConverter.cs
- _NativeSSPI.cs
- UIAgentInitializationException.cs
- CatalogZoneBase.cs
- VideoDrawing.cs
- InheritanceRules.cs
- NameValueConfigurationElement.cs
- CatalogPartCollection.cs
- CellCreator.cs
- DbConnectionOptions.cs
- ProvidersHelper.cs
- RegexBoyerMoore.cs
- HtmlInputControl.cs
- WebControlsSection.cs
- ObjectListGeneralPage.cs
- ValidationHelper.cs
- HandlerFactoryWrapper.cs
- EffectiveValueEntry.cs
- _DynamicWinsockMethods.cs
- Command.cs
- Size3DConverter.cs
- TextTreeTextNode.cs
- FormsAuthentication.cs
- GridView.cs
- CorrelationManager.cs
- CommandEventArgs.cs
- SelectionProcessor.cs
- FullTextLine.cs
- DateTimeFormatInfo.cs
- AmbientProperties.cs
- BrowserDefinition.cs
- EditorPartChrome.cs
- LocationReferenceValue.cs
- CompositeDataBoundControl.cs
- WrapPanel.cs
- KnowledgeBase.cs
- SamlConditions.cs
- TreeView.cs
- ErrorWrapper.cs
- FormsAuthentication.cs
- RuleConditionDialog.Designer.cs
- TraceUtils.cs
- ListViewDeletedEventArgs.cs
- CheckBoxFlatAdapter.cs
- ConnectionStringsExpressionBuilder.cs
- Keywords.cs
- Point4DValueSerializer.cs
- ProcessHostMapPath.cs
- UnsafeNativeMethods.cs
- JavaScriptObjectDeserializer.cs
- RealizationContext.cs
- SettingsSavedEventArgs.cs
- DesignerValidatorAdapter.cs
- EntityViewGenerationConstants.cs
- SqlDataSourceCache.cs
- BStrWrapper.cs
- SQLInt32.cs
- UserUseLicenseDictionaryLoader.cs
- DataGridViewCellFormattingEventArgs.cs
- AbstractSvcMapFileLoader.cs
- Module.cs
- AggregateException.cs
- XmlReaderSettings.cs
- EditorAttributeInfo.cs
- Normalizer.cs
- ToolStripItemDataObject.cs
- DeviceContext.cs
- FutureFactory.cs
- HttpListenerResponse.cs
- VSDExceptions.cs
- CreateUserWizard.cs
- AdministrationHelpers.cs