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 / 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
- RegexMatchCollection.cs
- UnmanagedBitmapWrapper.cs
- EffectiveValueEntry.cs
- ShutDownListener.cs
- ScopelessEnumAttribute.cs
- StringAnimationUsingKeyFrames.cs
- EntityDataSourceColumn.cs
- HyperLinkColumn.cs
- XmlBindingWorker.cs
- ISessionStateStore.cs
- ConfigXmlSignificantWhitespace.cs
- XmlSchemaProviderAttribute.cs
- FormsAuthenticationUserCollection.cs
- sqlpipe.cs
- HtmlInputSubmit.cs
- Menu.cs
- TransformerInfoCollection.cs
- ToolStripItemBehavior.cs
- DoubleUtil.cs
- SiteMapHierarchicalDataSourceView.cs
- ServiceNameCollection.cs
- CorePropertiesFilter.cs
- GridViewEditEventArgs.cs
- SystemIPv4InterfaceProperties.cs
- Int32.cs
- XPathParser.cs
- HttpHeaderCollection.cs
- EventListener.cs
- TextContainer.cs
- BeginCreateSecurityTokenRequest.cs
- MergeFilterQuery.cs
- RecognitionEventArgs.cs
- DataGridViewRowCancelEventArgs.cs
- HtmlInputRadioButton.cs
- XsdCachingReader.cs
- Sequence.cs
- ButtonAutomationPeer.cs
- ProfileBuildProvider.cs
- shaperfactoryquerycacheentry.cs
- DataGridViewColumnConverter.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- OdbcReferenceCollection.cs
- RequestCacheValidator.cs
- TemplateControlBuildProvider.cs
- Errors.cs
- OpacityConverter.cs
- HScrollBar.cs
- ContentValidator.cs
- ServicePointManagerElement.cs
- Quaternion.cs
- PointCollectionConverter.cs
- SqlDependencyUtils.cs
- XamlDebuggerXmlReader.cs
- ServiceNameElement.cs
- AsyncCallback.cs
- smtppermission.cs
- XsdDuration.cs
- GridViewDeletedEventArgs.cs
- ValidationEventArgs.cs
- HostExecutionContextManager.cs
- ImageSourceValueSerializer.cs
- XmlSchemaParticle.cs
- PartDesigner.cs
- RotateTransform.cs
- UrlMappingsModule.cs
- ListViewUpdateEventArgs.cs
- Rect.cs
- DashStyles.cs
- HwndSourceParameters.cs
- TdsParserHelperClasses.cs
- Annotation.cs
- TemplateBuilder.cs
- FastPropertyAccessor.cs
- ConditionChanges.cs
- QilDataSource.cs
- ReliabilityContractAttribute.cs
- DataGridViewCheckBoxColumn.cs
- CacheChildrenQuery.cs
- DescendentsWalker.cs
- LoginDesignerUtil.cs
- CompositeDuplexBindingElementImporter.cs
- WpfKnownMemberInvoker.cs
- FrameAutomationPeer.cs
- NamespaceEmitter.cs
- StylusPointPropertyInfo.cs
- CodeAssignStatement.cs
- PrivilegedConfigurationManager.cs
- CodeDelegateInvokeExpression.cs
- WindowsGraphicsWrapper.cs
- ImmComposition.cs
- figurelength.cs
- COSERVERINFO.cs
- StrongName.cs
- ProfilePropertyMetadata.cs
- EventMappingSettings.cs
- ComplexPropertyEntry.cs
- AnnotationMap.cs
- PerformanceCountersElement.cs
- TextServicesManager.cs
- PeerCredentialElement.cs