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
- SinglePageViewer.cs
- ChangeInterceptorAttribute.cs
- BrowserTree.cs
- TextTreeObjectNode.cs
- ResponseStream.cs
- DeleteBookmarkScope.cs
- LinearKeyFrames.cs
- ExpressionNormalizer.cs
- CellTreeNode.cs
- PathFigureCollectionValueSerializer.cs
- GPRECTF.cs
- SystemInfo.cs
- KnowledgeBase.cs
- LowerCaseStringConverter.cs
- LayoutDump.cs
- HealthMonitoringSectionHelper.cs
- WebBrowserContainer.cs
- CodeTypeDeclarationCollection.cs
- AggregateNode.cs
- RequiredAttributeAttribute.cs
- NativeMethodsCLR.cs
- Rect3D.cs
- ProgressBar.cs
- AttributeUsageAttribute.cs
- QueryCacheKey.cs
- UpDownEvent.cs
- CodeTypeReferenceCollection.cs
- NullableFloatMinMaxAggregationOperator.cs
- GlyphInfoList.cs
- Evidence.cs
- SqlDataSourceFilteringEventArgs.cs
- TrackBarDesigner.cs
- TypeNameHelper.cs
- FormViewPageEventArgs.cs
- TableLayoutSettings.cs
- ExecutionContext.cs
- SafeHandle.cs
- ElementsClipboardData.cs
- InstanceView.cs
- ExtendedProtectionPolicyElement.cs
- XamlGridLengthSerializer.cs
- webclient.cs
- SmtpNegotiateAuthenticationModule.cs
- LambdaCompiler.Address.cs
- RolePrincipal.cs
- DecoderFallback.cs
- SqlParameterCollection.cs
- HandleTable.cs
- CodeCommentStatement.cs
- DBCSCodePageEncoding.cs
- WriterOutput.cs
- LogAppendAsyncResult.cs
- CollectionView.cs
- MediaTimeline.cs
- JsonObjectDataContract.cs
- DesignTimeTemplateParser.cs
- AnnotationResourceCollection.cs
- WorkflowWebHostingModule.cs
- IndexerNameAttribute.cs
- ConnectorSelectionGlyph.cs
- DataTableCollection.cs
- Vector3DIndependentAnimationStorage.cs
- MatrixTransform.cs
- CultureData.cs
- ConfigurationManagerInternalFactory.cs
- WindowsNonControl.cs
- DecoderBestFitFallback.cs
- TablePattern.cs
- RegexCharClass.cs
- X509Utils.cs
- CodeLinePragma.cs
- ContextProperty.cs
- XmlSchemaInfo.cs
- DragDrop.cs
- PropertyToken.cs
- BitmapDecoder.cs
- DateTimeOffsetConverter.cs
- OracleMonthSpan.cs
- ImageField.cs
- DivideByZeroException.cs
- ColumnResizeAdorner.cs
- NameTable.cs
- TreeWalkHelper.cs
- ResourceAssociationType.cs
- DesignerActionVerbList.cs
- NonPrimarySelectionGlyph.cs
- TreeNodeStyleCollectionEditor.cs
- KerberosRequestorSecurityToken.cs
- ErrorStyle.cs
- SafeRightsManagementEnvironmentHandle.cs
- XmlSerializableServices.cs
- SelfIssuedSamlTokenFactory.cs
- ResourceDescriptionAttribute.cs
- HttpCookie.cs
- WebPartDescription.cs
- formatter.cs
- HandlerBase.cs
- EasingKeyFrames.cs
- BamlStream.cs
- SourceElementsCollection.cs