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 / NodeLabelEditEvent.cs / 1 / NodeLabelEditEvent.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
/// or event.
///
///
public class NodeLabelEditEventArgs : EventArgs {
private readonly string label;
private readonly TreeNode node;
private bool cancelEdit = false;
///
///
/// [To be supplied.]
///
public NodeLabelEditEventArgs(TreeNode node) {
this.node = node;
this.label = null;
}
///
///
/// [To be supplied.]
///
public NodeLabelEditEventArgs(TreeNode node, string label) {
this.node = node;
this.label = label;
}
///
///
/// [To be supplied.]
///
public bool CancelEdit {
get {
return cancelEdit;
}
set {
cancelEdit = value;
}
}
///
///
/// [To be supplied.]
///
public string Label {
get {
return label;
}
}
///
///
/// [To be supplied.]
///
public TreeNode Node {
get {
return node;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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
/// or event.
///
///
public class NodeLabelEditEventArgs : EventArgs {
private readonly string label;
private readonly TreeNode node;
private bool cancelEdit = false;
///
///
/// [To be supplied.]
///
public NodeLabelEditEventArgs(TreeNode node) {
this.node = node;
this.label = null;
}
///
///
/// [To be supplied.]
///
public NodeLabelEditEventArgs(TreeNode node, string label) {
this.node = node;
this.label = label;
}
///
///
/// [To be supplied.]
///
public bool CancelEdit {
get {
return cancelEdit;
}
set {
cancelEdit = value;
}
}
///
///
/// [To be supplied.]
///
public string Label {
get {
return label;
}
}
///
///
/// [To be supplied.]
///
public TreeNode Node {
get {
return node;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpSessionStateWrapper.cs
- XamlTreeBuilderBamlRecordWriter.cs
- XamlPathDataSerializer.cs
- WsiProfilesElementCollection.cs
- ServiceContractAttribute.cs
- FixedDocumentPaginator.cs
- EventWaitHandleSecurity.cs
- _ListenerRequestStream.cs
- SafeUserTokenHandle.cs
- KoreanCalendar.cs
- PageBuildProvider.cs
- TargetPerspective.cs
- InfiniteTimeSpanConverter.cs
- ThreadInterruptedException.cs
- SecurityKeyUsage.cs
- CompiledQuery.cs
- XPathException.cs
- InProcStateClientManager.cs
- EventSinkHelperWriter.cs
- DecoderExceptionFallback.cs
- RichTextBoxConstants.cs
- DataServiceHost.cs
- DataObject.cs
- ExcludePathInfo.cs
- WebPartDeleteVerb.cs
- _Events.cs
- DBSqlParserTableCollection.cs
- TextRangeEditLists.cs
- DispatchWrapper.cs
- WebConfigurationHostFileChange.cs
- EntityProxyFactory.cs
- FrameworkElementAutomationPeer.cs
- NodeCounter.cs
- ProjectionCamera.cs
- QuotedPairReader.cs
- GridViewCommandEventArgs.cs
- WebPartEditVerb.cs
- UnsignedPublishLicense.cs
- AssemblyContextControlItem.cs
- HttpModulesSection.cs
- HttpCacheVaryByContentEncodings.cs
- SqlMethods.cs
- SafeFreeMibTable.cs
- AppSettingsSection.cs
- X509Certificate2Collection.cs
- Tag.cs
- DocumentXmlWriter.cs
- SafePointer.cs
- SliderAutomationPeer.cs
- SafeFileMappingHandle.cs
- ActivationWorker.cs
- Atom10FormatterFactory.cs
- RegistrationServices.cs
- Column.cs
- SortFieldComparer.cs
- CodeExporter.cs
- ExceptionRoutedEventArgs.cs
- LostFocusEventManager.cs
- TextTreeUndo.cs
- TraceUtility.cs
- RowUpdatingEventArgs.cs
- ChangePassword.cs
- DescendentsWalker.cs
- SymbolPair.cs
- FormatterServices.cs
- DataGridRowEventArgs.cs
- EventMemberCodeDomSerializer.cs
- DesignerActionVerbItem.cs
- ApplicationException.cs
- CodeSnippetTypeMember.cs
- MimeObjectFactory.cs
- XmlWriter.cs
- AppDomainUnloadedException.cs
- ButtonBaseAutomationPeer.cs
- Pkcs7Recipient.cs
- DescriptionCreator.cs
- ResourcePermissionBase.cs
- ValidationError.cs
- SecurityTokenRequirement.cs
- DeclarativeCatalogPart.cs
- FrameworkReadOnlyPropertyMetadata.cs
- RSAPKCS1SignatureFormatter.cs
- VectorConverter.cs
- TextFormatter.cs
- MenuBase.cs
- Descriptor.cs
- DropDownButton.cs
- TextFormatterContext.cs
- WebPartConnectionsConfigureVerb.cs
- BinHexEncoder.cs
- MemberJoinTreeNode.cs
- BrowserCapabilitiesFactory35.cs
- DataGridViewTopRowAccessibleObject.cs
- XmlDataSourceView.cs
- SchemaDeclBase.cs
- OleDbRowUpdatingEvent.cs
- SafeNativeMethodsOther.cs
- ToolStripSplitStackLayout.cs
- SatelliteContractVersionAttribute.cs
- ThicknessKeyFrameCollection.cs