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
- Animatable.cs
- HttpHandlerAction.cs
- HtmlInputPassword.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- FixedDocumentSequencePaginator.cs
- CompositeDuplexBindingElement.cs
- Win32PrintDialog.cs
- RegionData.cs
- DataGridRowAutomationPeer.cs
- DateTimeConverter2.cs
- CategoryGridEntry.cs
- DateTimeStorage.cs
- TextElementCollectionHelper.cs
- RSAPKCS1SignatureFormatter.cs
- AbstractDataSvcMapFileLoader.cs
- PowerEase.cs
- XslUrlEditor.cs
- WmlPanelAdapter.cs
- WebRequestModuleElement.cs
- WindowsTab.cs
- DrawListViewColumnHeaderEventArgs.cs
- ExpressionLink.cs
- DataGridColumnCollection.cs
- MainMenu.cs
- PageParserFilter.cs
- AccessKeyManager.cs
- TraceLevelStore.cs
- VisualTreeUtils.cs
- ExcCanonicalXml.cs
- IgnoreSectionHandler.cs
- InternalsVisibleToAttribute.cs
- DocumentSchemaValidator.cs
- RowUpdatingEventArgs.cs
- PropertyPathWorker.cs
- EventToken.cs
- DelegatingStream.cs
- CodeIdentifier.cs
- ImageCodecInfo.cs
- DbResourceAllocator.cs
- DataKey.cs
- SoapAttributeAttribute.cs
- InvokeGenerator.cs
- Table.cs
- XomlCompilerHelpers.cs
- GifBitmapDecoder.cs
- StateDesignerConnector.cs
- Roles.cs
- Pen.cs
- ImageSource.cs
- NonSerializedAttribute.cs
- Merger.cs
- InputLanguage.cs
- StateDesignerConnector.cs
- SctClaimSerializer.cs
- BinaryObjectWriter.cs
- SlotInfo.cs
- ServicePoint.cs
- ToolStripManager.cs
- HttpModulesSection.cs
- XsdDateTime.cs
- RequestResponse.cs
- QilParameter.cs
- SqlDataSourceCommandEventArgs.cs
- DbProviderFactories.cs
- ConfigXmlAttribute.cs
- StringArrayConverter.cs
- XslCompiledTransform.cs
- ScrollViewerAutomationPeer.cs
- SafeHandles.cs
- ReferentialConstraintRoleElement.cs
- Grid.cs
- TimelineClockCollection.cs
- DateTimeOffset.cs
- ToolStripDesignerAvailabilityAttribute.cs
- Win32.cs
- Substitution.cs
- InfocardExtendedInformationEntry.cs
- FrugalMap.cs
- DesigntimeLicenseContext.cs
- Transform.cs
- GridViewDeletedEventArgs.cs
- PropertyDescriptors.cs
- RootProfilePropertySettingsCollection.cs
- LogRecordSequence.cs
- FunctionDetailsReader.cs
- DataRowView.cs
- TextEditorDragDrop.cs
- JumpPath.cs
- QueryConverter.cs
- RadialGradientBrush.cs
- RegexWriter.cs
- XpsDocumentEvent.cs
- Subset.cs
- PageBuildProvider.cs
- OutputCacheSettings.cs
- COM2ExtendedUITypeEditor.cs
- PassportAuthenticationModule.cs
- FormatterConverter.cs
- ping.cs
- PointLight.cs