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
- ProcessHostServerConfig.cs
- XmlSchemaSimpleContentRestriction.cs
- ClusterUtils.cs
- PresentationTraceSources.cs
- CodeGenerationManager.cs
- ObjectMemberMapping.cs
- FileDialog_Vista.cs
- SmiGettersStream.cs
- AdapterSwitches.cs
- Translator.cs
- EntityDesignerBuildProvider.cs
- SystemWebSectionGroup.cs
- ToolStripPanelRow.cs
- UInt16Storage.cs
- DateTimeConstantAttribute.cs
- MailWebEventProvider.cs
- DocumentViewerBaseAutomationPeer.cs
- TreeView.cs
- LocatorBase.cs
- BitmapEffectCollection.cs
- TextEncodedRawTextWriter.cs
- BitmapMetadataBlob.cs
- RemoteDebugger.cs
- VisualBrush.cs
- MenuDesigner.cs
- GACMembershipCondition.cs
- ProtocolsConfiguration.cs
- FormViewUpdatedEventArgs.cs
- Attribute.cs
- EntityDataSourceQueryBuilder.cs
- ResourceSetExpression.cs
- ConfigurationLockCollection.cs
- ProgressChangedEventArgs.cs
- Size3DValueSerializer.cs
- HttpDigestClientCredential.cs
- EntityDataSourceValidationException.cs
- DrawListViewColumnHeaderEventArgs.cs
- SemaphoreFullException.cs
- SessionSwitchEventArgs.cs
- DBCommandBuilder.cs
- Propagator.Evaluator.cs
- WindowsComboBox.cs
- XmlReaderSettings.cs
- OpenTypeLayoutCache.cs
- ScopelessEnumAttribute.cs
- DbParameterCollectionHelper.cs
- SQLMoney.cs
- WebPartEditVerb.cs
- DataGridViewRowPostPaintEventArgs.cs
- ConfigurationStrings.cs
- SetterBaseCollection.cs
- SafeCryptoHandles.cs
- WebBrowserNavigatingEventHandler.cs
- StatusBar.cs
- KeysConverter.cs
- LinkedDataMemberFieldEditor.cs
- RouteParametersHelper.cs
- Condition.cs
- BuildResult.cs
- DesignerCommandAdapter.cs
- ReferenceService.cs
- MaskPropertyEditor.cs
- MarshalByRefObject.cs
- UTF7Encoding.cs
- XPathExpr.cs
- PrivilegeNotHeldException.cs
- WebPartVerbsEventArgs.cs
- DesignTimeVisibleAttribute.cs
- TokenizerHelper.cs
- URLString.cs
- StreamSecurityUpgradeInitiatorBase.cs
- AuthenticatedStream.cs
- WebOperationContext.cs
- StringKeyFrameCollection.cs
- MouseGesture.cs
- _OSSOCK.cs
- Camera.cs
- CallbackValidator.cs
- MultipartIdentifier.cs
- Matrix.cs
- BitmapEffectState.cs
- IArgumentProvider.cs
- ActivatedMessageQueue.cs
- PeerContact.cs
- OracleConnection.cs
- ClientUrlResolverWrapper.cs
- XmlValidatingReaderImpl.cs
- Hashtable.cs
- ArgumentException.cs
- Operand.cs
- TextContainerChangedEventArgs.cs
- FieldNameLookup.cs
- EdmSchemaAttribute.cs
- BuildProvidersCompiler.cs
- ObjectKeyFrameCollection.cs
- LineMetrics.cs
- DbgUtil.cs
- ServicePointManager.cs
- SafeFileHandle.cs
- ProxyWebPartConnectionCollection.cs