Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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. // Copyright (c) Microsoft Corporation. All rights reserved./// 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
- MiniMapControl.xaml.cs
- EntityContainerAssociationSet.cs
- securestring.cs
- AdministrationHelpers.cs
- PlainXmlWriter.cs
- Pool.cs
- XmlDataSource.cs
- PersonalizableAttribute.cs
- MsmqTransportSecurity.cs
- TrackingRecord.cs
- CompensatableTransactionScopeActivity.cs
- FlowDocument.cs
- DPCustomTypeDescriptor.cs
- ActiveXSite.cs
- ChtmlFormAdapter.cs
- DataGridViewUtilities.cs
- SqlClientWrapperSmiStream.cs
- ContextMenu.cs
- DocumentPropertiesDialog.cs
- CodeNamespaceImportCollection.cs
- ChameleonKey.cs
- OnOperation.cs
- HuffCodec.cs
- AttachmentCollection.cs
- SendOperation.cs
- recordstatefactory.cs
- KeyGestureConverter.cs
- GradientStopCollection.cs
- PageContentAsyncResult.cs
- XmlDataSourceView.cs
- DataContractSerializerFaultFormatter.cs
- EventArgs.cs
- CopyNamespacesAction.cs
- SizeConverter.cs
- FileRecordSequenceHelper.cs
- HandleRef.cs
- Size.cs
- HttpModuleActionCollection.cs
- NumericPagerField.cs
- SafeSecurityHelper.cs
- LabelInfo.cs
- DynamicILGenerator.cs
- QueryAccessibilityHelpEvent.cs
- MethodBody.cs
- InputLanguageManager.cs
- CommandBindingCollection.cs
- _Events.cs
- HierarchicalDataBoundControl.cs
- CompiledRegexRunnerFactory.cs
- Monitor.cs
- Stacktrace.cs
- ResponseBodyWriter.cs
- DataGridViewColumnEventArgs.cs
- ToolStripManager.cs
- OrderByQueryOptionExpression.cs
- StandardOleMarshalObject.cs
- RelationshipConverter.cs
- PowerStatus.cs
- SettingsPropertyWrongTypeException.cs
- StringTraceRecord.cs
- UpdateException.cs
- VisualStyleInformation.cs
- Rect.cs
- DecimalConverter.cs
- OleTxTransactionInfo.cs
- DnsPermission.cs
- LineInfo.cs
- AliasedSlot.cs
- Trace.cs
- ControlCollection.cs
- WebPartVerbsEventArgs.cs
- QueryOperationResponseOfT.cs
- AmbientLight.cs
- SystemFonts.cs
- DynamicValidatorEventArgs.cs
- TextMetrics.cs
- XamlTypeMapper.cs
- Exceptions.cs
- CodeMemberField.cs
- XmlSchemaRedefine.cs
- FloaterBaseParagraph.cs
- ChangeBlockUndoRecord.cs
- WindowsPrincipal.cs
- PhysicalOps.cs
- CaseInsensitiveComparer.cs
- EdmSchemaError.cs
- State.cs
- StoreItemCollection.Loader.cs
- ComponentResourceKeyConverter.cs
- EntityModelSchemaGenerator.cs
- Win32MouseDevice.cs
- ObjectQueryState.cs
- Slider.cs
- HttpModuleAction.cs
- XmlDesignerDataSourceView.cs
- ConnectionPoint.cs
- WinInet.cs
- SafeLocalAllocation.cs
- MediaTimeline.cs
- TextDecorationCollectionConverter.cs