Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / LabelEditEvent.cs / 1305376 / 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
- Page.cs
- SafeTimerHandle.cs
- AppModelKnownContentFactory.cs
- Sorting.cs
- TranslateTransform.cs
- DataPagerFieldCollection.cs
- XmlSchemaSimpleContentExtension.cs
- MessageAction.cs
- LinqDataSourceUpdateEventArgs.cs
- BoolLiteral.cs
- ISAPIWorkerRequest.cs
- ServiceContractGenerationContext.cs
- NeutralResourcesLanguageAttribute.cs
- HtmlForm.cs
- ObjectListFieldsPage.cs
- SequenceFullException.cs
- FlowDocumentFormatter.cs
- KerberosRequestorSecurityToken.cs
- PrincipalPermission.cs
- ToolStripContentPanelDesigner.cs
- EventSetter.cs
- TextElementEnumerator.cs
- XPathNavigatorReader.cs
- PackageRelationshipSelector.cs
- ToolbarAUtomationPeer.cs
- MdiWindowListStrip.cs
- MimeWriter.cs
- SortDescriptionCollection.cs
- QueryHandler.cs
- CssStyleCollection.cs
- ArithmeticException.cs
- _Rfc2616CacheValidators.cs
- TypeUsageBuilder.cs
- SiteMapDataSource.cs
- EdmSchemaAttribute.cs
- XmlSortKeyAccumulator.cs
- XmlSchemaAttribute.cs
- AppendHelper.cs
- InputReportEventArgs.cs
- HttpRequest.cs
- BaseCollection.cs
- DynamicFilterExpression.cs
- WindowsFormsHost.cs
- TraceContextRecord.cs
- XamlHostingSectionGroup.cs
- ToolboxComponentsCreatedEventArgs.cs
- ExpressionsCollectionEditor.cs
- HtmlImageAdapter.cs
- TheQuery.cs
- SpeechUI.cs
- panel.cs
- PrintPageEvent.cs
- SimpleExpression.cs
- TextChange.cs
- RawUIStateInputReport.cs
- MailMessageEventArgs.cs
- CounterSample.cs
- SqlTypesSchemaImporter.cs
- MeasurementDCInfo.cs
- DesignerCommandSet.cs
- CodeDomSerializerException.cs
- ListViewInsertEventArgs.cs
- PathGeometry.cs
- diagnosticsswitches.cs
- ClientConfigurationSystem.cs
- Options.cs
- CodeDirectoryCompiler.cs
- HtmlInputImage.cs
- ObjectListFieldCollection.cs
- ItemChangedEventArgs.cs
- ZoneMembershipCondition.cs
- RealProxy.cs
- DynamicEntity.cs
- LicenseProviderAttribute.cs
- GlyphShapingProperties.cs
- ZoomingMessageFilter.cs
- KeyConstraint.cs
- EpmCustomContentWriterNodeData.cs
- LinkLabel.cs
- MatchAttribute.cs
- CurrentChangingEventManager.cs
- GetCryptoTransformRequest.cs
- CompatibleComparer.cs
- CompositeDataBoundControl.cs
- ListViewUpdateEventArgs.cs
- MouseGestureConverter.cs
- XamlClipboardData.cs
- OdbcEnvironment.cs
- FormViewDeletedEventArgs.cs
- FunctionDescription.cs
- OuterProxyWrapper.cs
- SlipBehavior.cs
- ExpressionConverter.cs
- DocumentReferenceCollection.cs
- ActivityScheduledRecord.cs
- StatusBarDrawItemEvent.cs
- _NegoStream.cs
- ClipboardProcessor.cs
- PageCatalogPart.cs
- ApplicationInfo.cs