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
- ValueHandle.cs
- RoleManagerEventArgs.cs
- TypeConverterValueSerializer.cs
- ProtocolsConfigurationHandler.cs
- RawAppCommandInputReport.cs
- DurableMessageDispatchInspector.cs
- XPathSelectionIterator.cs
- AspCompat.cs
- DataGridViewColumnCollectionEditor.cs
- CompilerWrapper.cs
- Color.cs
- SessionStateItemCollection.cs
- ResourcesBuildProvider.cs
- ConstructorNeedsTagAttribute.cs
- UnmanagedHandle.cs
- sqlstateclientmanager.cs
- ThemeDirectoryCompiler.cs
- CodeStatementCollection.cs
- WebPartDisplayModeCancelEventArgs.cs
- SessionIDManager.cs
- DbConnectionOptions.cs
- ServiceHttpModule.cs
- DesignTimeTemplateParser.cs
- OutOfProcStateClientManager.cs
- SQLConvert.cs
- ScriptControlManager.cs
- FSWPathEditor.cs
- MatrixConverter.cs
- TcpWorkerProcess.cs
- HealthMonitoringSectionHelper.cs
- GradientStopCollection.cs
- RevocationPoint.cs
- StyleModeStack.cs
- PointCollectionConverter.cs
- SByte.cs
- Bold.cs
- DoubleSumAggregationOperator.cs
- PipeSecurity.cs
- TCPClient.cs
- SessionState.cs
- Mapping.cs
- XmlHierarchyData.cs
- RSAProtectedConfigurationProvider.cs
- MDIClient.cs
- RepeatButton.cs
- ScriptingJsonSerializationSection.cs
- altserialization.cs
- ScriptResourceHandler.cs
- CreatingCookieEventArgs.cs
- TreeNode.cs
- CheckableControlBaseAdapter.cs
- MembershipValidatePasswordEventArgs.cs
- UiaCoreApi.cs
- RegexCode.cs
- DocumentGrid.cs
- WebPartVerbCollection.cs
- Matrix3DStack.cs
- DocumentEventArgs.cs
- BaseCollection.cs
- X509ChainPolicy.cs
- iisPickupDirectory.cs
- StorageBasedPackageProperties.cs
- SerialReceived.cs
- SeekStoryboard.cs
- BrowserDefinitionCollection.cs
- AuditLogLocation.cs
- XpsPartBase.cs
- DataIdProcessor.cs
- Console.cs
- AesCryptoServiceProvider.cs
- StylusCaptureWithinProperty.cs
- GridView.cs
- Int32CollectionConverter.cs
- LogExtentCollection.cs
- IisTraceWebEventProvider.cs
- SmtpNtlmAuthenticationModule.cs
- CompoundFileStreamReference.cs
- Point3DCollectionValueSerializer.cs
- CommandBinding.cs
- EndpointPerformanceCounters.cs
- Byte.cs
- UnaryQueryOperator.cs
- KeyValuePairs.cs
- InputScopeAttribute.cs
- ConnectivityStatus.cs
- TextParaClient.cs
- ClientOperationFormatterProvider.cs
- TreeWalkHelper.cs
- TemplateControlParser.cs
- RSAOAEPKeyExchangeDeformatter.cs
- webeventbuffer.cs
- ItemsPresenter.cs
- bindurihelper.cs
- StrongNameUtility.cs
- BinaryMethodMessage.cs
- HttpRuntimeSection.cs
- XmlWellformedWriter.cs
- InheritanceService.cs
- DependencyPropertyAttribute.cs
- LinearGradientBrush.cs