Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- HtmlPageAdapter.cs
- StreamBodyWriter.cs
- IndexedSelectQueryOperator.cs
- DataServiceEntityAttribute.cs
- BaseTreeIterator.cs
- SiteMap.cs
- TextDpi.cs
- SystemWebSectionGroup.cs
- X509ThumbprintKeyIdentifierClause.cs
- SqlDataSourceRefreshSchemaForm.cs
- TextTreeTextElementNode.cs
- HttpProxyCredentialType.cs
- CodeDefaultValueExpression.cs
- ToolStripContainer.cs
- CodeTypeDeclarationCollection.cs
- InlineObject.cs
- ChannelSettingsElement.cs
- Duration.cs
- InputProcessorProfiles.cs
- HelloOperation11AsyncResult.cs
- JsonEncodingStreamWrapper.cs
- PersonalizationProviderHelper.cs
- MemberInfoSerializationHolder.cs
- SecurityToken.cs
- ManagementNamedValueCollection.cs
- VisualStates.cs
- SpeechRecognitionEngine.cs
- TextEditorSelection.cs
- QilLoop.cs
- Activator.cs
- BuildProvider.cs
- IconBitmapDecoder.cs
- _ConnectStream.cs
- InternalBufferOverflowException.cs
- WorkflowDesignerMessageFilter.cs
- TransportChannelListener.cs
- IgnoreFileBuildProvider.cs
- TraceContext.cs
- VisualState.cs
- ZipPackagePart.cs
- CreateUserWizard.cs
- DescendentsWalkerBase.cs
- Object.cs
- ServiceBuildProvider.cs
- ApplicationTrust.cs
- CompiledRegexRunnerFactory.cs
- FileIOPermission.cs
- WebServiceParameterData.cs
- SoapAttributes.cs
- InputLangChangeEvent.cs
- RouteItem.cs
- DbConnectionPoolIdentity.cs
- JpegBitmapDecoder.cs
- LoginUtil.cs
- ImageListImageEditor.cs
- TableFieldsEditor.cs
- SendingRequestEventArgs.cs
- PageThemeCodeDomTreeGenerator.cs
- ErrorFormatterPage.cs
- _Rfc2616CacheValidators.cs
- TripleDESCryptoServiceProvider.cs
- InternalControlCollection.cs
- UxThemeWrapper.cs
- RightsManagementPermission.cs
- ToolStripComboBox.cs
- Tag.cs
- BinaryFormatterWriter.cs
- FontFamilyConverter.cs
- DurableInstance.cs
- WindowsRichEditRange.cs
- LineGeometry.cs
- CompositeFontParser.cs
- ListViewGroupCollectionEditor.cs
- COAUTHINFO.cs
- BaseCollection.cs
- XamlSerializer.cs
- PageStatePersister.cs
- DataPagerFieldCollection.cs
- SafeProcessHandle.cs
- TerminateSequenceResponse.cs
- Matrix.cs
- DateTimePicker.cs
- EventWaitHandleSecurity.cs
- ServiceHostFactory.cs
- Matrix3D.cs
- ServiceHttpModule.cs
- CodeMethodInvokeExpression.cs
- ModelItemCollection.cs
- ToolStripSystemRenderer.cs
- URLMembershipCondition.cs
- XAMLParseException.cs
- SerialReceived.cs
- TypeUtil.cs
- Logging.cs
- GetReadStreamResult.cs
- SrgsNameValueTag.cs
- InfoCardSymmetricAlgorithm.cs
- TransformPattern.cs
- CodeCompileUnit.cs
- Shared.cs