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
- AssertValidation.cs
- TextBreakpoint.cs
- XPathNavigatorReader.cs
- WinEventQueueItem.cs
- SecurityPolicySection.cs
- ServiceObjectContainer.cs
- MediaScriptCommandRoutedEventArgs.cs
- SchemaNamespaceManager.cs
- ResourceSetExpression.cs
- DragSelectionMessageFilter.cs
- __Error.cs
- RuleSettings.cs
- XDeferredAxisSource.cs
- RelatedImageListAttribute.cs
- ScriptResourceInfo.cs
- SapiInterop.cs
- _HeaderInfo.cs
- Rect.cs
- VirtualPathProvider.cs
- BlobPersonalizationState.cs
- EmptyQuery.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- TableCellCollection.cs
- PerformanceCountersElement.cs
- EventMappingSettings.cs
- TransactionManager.cs
- VariableQuery.cs
- DetailsViewRow.cs
- CodeSnippetExpression.cs
- ScalarType.cs
- XmlTypeMapping.cs
- NavigatorOutput.cs
- QfeChecker.cs
- ChangeNode.cs
- SqlPersonalizationProvider.cs
- ValueOfAction.cs
- HttpResponse.cs
- DocumentPage.cs
- UserControlDocumentDesigner.cs
- SearchForVirtualItemEventArgs.cs
- DiagnosticStrings.cs
- FixedFlowMap.cs
- ConfigurationPermission.cs
- ExpandCollapseProviderWrapper.cs
- Line.cs
- DrawingVisualDrawingContext.cs
- ICollection.cs
- DataPagerField.cs
- PlanCompiler.cs
- RangeValuePattern.cs
- XomlCompiler.cs
- DiscoveryDocumentReference.cs
- CatalogZoneBase.cs
- PointConverter.cs
- base64Transforms.cs
- WindowsHyperlink.cs
- WebPartCancelEventArgs.cs
- DbModificationClause.cs
- WorkflowTransactionOptions.cs
- WinOEToolBoxItem.cs
- EventArgs.cs
- HtmlLink.cs
- CharAnimationBase.cs
- RpcResponse.cs
- QilTargetType.cs
- ColumnProvider.cs
- SHA256Managed.cs
- WindowsImpersonationContext.cs
- ToolStripItemCollection.cs
- RsaSecurityToken.cs
- PolicyLevel.cs
- FindCriteria11.cs
- MergeFilterQuery.cs
- NeutralResourcesLanguageAttribute.cs
- LocationSectionRecord.cs
- Error.cs
- SudsWriter.cs
- PolicyManager.cs
- CellTreeNodeVisitors.cs
- contentDescriptor.cs
- ExportOptions.cs
- COM2ExtendedTypeConverter.cs
- TextReader.cs
- DetailsViewUpdateEventArgs.cs
- ScalarConstant.cs
- TreeChangeInfo.cs
- ResourcePermissionBase.cs
- ZipFileInfoCollection.cs
- UpdateCommandGenerator.cs
- DataTemplate.cs
- XmlSchemaSimpleContentRestriction.cs
- PatternMatcher.cs
- SubpageParagraph.cs
- PassportAuthentication.cs
- Debugger.cs
- Certificate.cs
- OneWayElement.cs
- GPRECT.cs
- Verify.cs
- FontEmbeddingManager.cs