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
- ToolBarButton.cs
- XmlLinkedNode.cs
- DataList.cs
- DataReceivedEventArgs.cs
- ParsedAttributeCollection.cs
- ObjectAssociationEndMapping.cs
- Msmq.cs
- ByteStream.cs
- SqlDataSourceFilteringEventArgs.cs
- IISMapPath.cs
- ReadOnlyNameValueCollection.cs
- SqlDataSourceConnectionPanel.cs
- SHA384CryptoServiceProvider.cs
- GeneralTransform2DTo3DTo2D.cs
- DrawingImage.cs
- xsdvalidator.cs
- CharEntityEncoderFallback.cs
- DataServiceRequestArgs.cs
- EventNotify.cs
- ViewStateModeByIdAttribute.cs
- DocumentGridContextMenu.cs
- QuaternionConverter.cs
- BaseComponentEditor.cs
- SmtpException.cs
- SafeLocalAllocation.cs
- PerfCounters.cs
- SqlLiftIndependentRowExpressions.cs
- OdbcConnectionFactory.cs
- TypeBuilderInstantiation.cs
- ListenDesigner.cs
- Transactions.cs
- _AutoWebProxyScriptWrapper.cs
- SafeSystemMetrics.cs
- XmlAttributeCache.cs
- PropertyMappingExceptionEventArgs.cs
- SqlProviderServices.cs
- XmlValueConverter.cs
- ConnectorSelectionGlyph.cs
- WorkflowDurableInstance.cs
- ToolStripDropDownItemDesigner.cs
- ToolStripOverflowButton.cs
- ObjectStateManager.cs
- SqlRemoveConstantOrderBy.cs
- GridViewRow.cs
- Color.cs
- CoreSwitches.cs
- ObjectConverter.cs
- Rfc2898DeriveBytes.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- _DomainName.cs
- PbrsForward.cs
- safex509handles.cs
- WpfWebRequestHelper.cs
- DataTableMappingCollection.cs
- XmlLoader.cs
- MultipartContentParser.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- InvalidateEvent.cs
- HttpCookiesSection.cs
- PropertySegmentSerializer.cs
- CustomCategoryAttribute.cs
- DataGrid.cs
- XmlAnyAttributeAttribute.cs
- CodeGotoStatement.cs
- PackWebResponse.cs
- FrameworkContentElement.cs
- XmlValueConverter.cs
- MultiPropertyDescriptorGridEntry.cs
- AnnotationResource.cs
- Matrix3D.cs
- CommandExpr.cs
- StyleBamlRecordReader.cs
- CompilerLocalReference.cs
- UnsafeNetInfoNativeMethods.cs
- ClientSettings.cs
- SerializableReadOnlyDictionary.cs
- IxmlLineInfo.cs
- XmlUtil.cs
- OracleNumber.cs
- HttpContextServiceHost.cs
- StyleTypedPropertyAttribute.cs
- CfgSemanticTag.cs
- WebConfigurationHost.cs
- XamlBuildTaskServices.cs
- XmlSchemaException.cs
- X509ChainPolicy.cs
- FileSecurity.cs
- Positioning.cs
- FactoryGenerator.cs
- TemplateBindingExtension.cs
- XslException.cs
- MailMessage.cs
- WebBrowserSiteBase.cs
- TagPrefixAttribute.cs
- Regex.cs
- XmlNodeList.cs
- Label.cs
- FontInfo.cs
- CompoundFileStorageReference.cs
- EndpointAddressMessageFilterTable.cs