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;
///
///
///
/// Provides data for the event.
///
///
public class LabelEditEventArgs : EventArgs {
private readonly string label;
private readonly int item;
private bool cancelEdit = false;
///
///
///
/// Initializes a new instance
/// of the class with the specified
/// index to the to edit.
///
///
public LabelEditEventArgs(int item) {
this.item = item;
this.label = null;
}
///
///
///
/// 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 LabelEditEventArgs(int item, string label) {
this.item = item;
this.label = label;
}
///
///
///
/// Gets the new text assigned to the label of the .
///
///
public string Label {
get {
return label;
}
}
///
///
///
/// Gets the zero-based index of the containing the label to
/// edit.
///
///
public int Item {
get {
return item;
}
}
///
///
///
/// Gets or sets a value indicating whether changes made to the label of
/// the should be canceled.
///
///
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RMEnrollmentPage2.cs
- ConfigurationElementCollection.cs
- And.cs
- DataColumnCollection.cs
- SecureStringHasher.cs
- SqlDataSourceFilteringEventArgs.cs
- ParameterInfo.cs
- ListComponentEditor.cs
- InheritablePropertyChangeInfo.cs
- RegexRunnerFactory.cs
- AsyncOperationManager.cs
- TextPointer.cs
- BulletedListEventArgs.cs
- UpdateCommandGenerator.cs
- RootBrowserWindowAutomationPeer.cs
- OLEDB_Util.cs
- XhtmlBasicValidationSummaryAdapter.cs
- streamingZipPartStream.cs
- ViewBox.cs
- assemblycache.cs
- DesignerAdRotatorAdapter.cs
- UpDownEvent.cs
- FileDialog.cs
- XsltContext.cs
- GenericEnumerator.cs
- _ConnectionGroup.cs
- WorkflowRuntimeServiceElementCollection.cs
- XPathSelfQuery.cs
- TiffBitmapDecoder.cs
- SHA256Managed.cs
- MissingFieldException.cs
- AbsoluteQuery.cs
- UnSafeCharBuffer.cs
- OutputCacheSettings.cs
- DragStartedEventArgs.cs
- EntryPointNotFoundException.cs
- SupportsEventValidationAttribute.cs
- QilPatternVisitor.cs
- EdmSchemaError.cs
- TimelineClockCollection.cs
- ScriptRef.cs
- ToolBarDesigner.cs
- DiagnosticEventProvider.cs
- SafeMILHandle.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- AndCondition.cs
- listitem.cs
- ConfigurationElementCollection.cs
- CodeLabeledStatement.cs
- TreeView.cs
- WebPartConnectionCollection.cs
- Int16AnimationUsingKeyFrames.cs
- PrinterSettings.cs
- MeshGeometry3D.cs
- StyleModeStack.cs
- InputLanguageProfileNotifySink.cs
- CompoundFileStorageReference.cs
- NTAccount.cs
- PreProcessInputEventArgs.cs
- EntityDataSourceStatementEditorForm.cs
- TextFindEngine.cs
- XmlSchemaExporter.cs
- XmlHierarchicalDataSourceView.cs
- SystemDiagnosticsSection.cs
- ParameterToken.cs
- RegexCompiler.cs
- AssociatedControlConverter.cs
- AuthorizationSection.cs
- FrameworkElementFactoryMarkupObject.cs
- BamlMapTable.cs
- DataSourceView.cs
- StartUpEventArgs.cs
- OutputCacheSettings.cs
- TransformerConfigurationWizardBase.cs
- SessionEndingEventArgs.cs
- NumberFormatter.cs
- TogglePattern.cs
- CodeAttributeDeclarationCollection.cs
- XmlResolver.cs
- ObjectViewQueryResultData.cs
- SQLDecimal.cs
- InputElement.cs
- OptimalTextSource.cs
- FixedPosition.cs
- Point3DAnimationBase.cs
- CorrelationManager.cs
- Transform3DCollection.cs
- ToolTipAutomationPeer.cs
- Win32NamedPipes.cs
- NetPeerTcpBindingElement.cs
- PartialClassGenerationTaskInternal.cs
- ContextStaticAttribute.cs
- LambdaCompiler.Logical.cs
- PlaceHolder.cs
- XmlAggregates.cs
- UserPreferenceChangedEventArgs.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- DbConnectionPoolIdentity.cs
- DateTimeSerializationSection.cs
- XamlSerializationHelper.cs