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
- ServiceNotStartedException.cs
- UIElement.cs
- ValueExpressions.cs
- XmlAutoDetectWriter.cs
- QilReference.cs
- KnownAssembliesSet.cs
- OleDbInfoMessageEvent.cs
- TimeZone.cs
- RenderData.cs
- HashHelper.cs
- XmlHierarchicalDataSourceView.cs
- RelationshipSet.cs
- ProfileInfo.cs
- AnnotationHelper.cs
- CapabilitiesUse.cs
- _DisconnectOverlappedAsyncResult.cs
- WpfWebRequestHelper.cs
- KoreanLunisolarCalendar.cs
- PropertyOrder.cs
- SpnegoTokenAuthenticator.cs
- DashStyle.cs
- Quaternion.cs
- Span.cs
- FormViewDeleteEventArgs.cs
- ReservationNotFoundException.cs
- Rotation3DAnimationBase.cs
- DataGridViewCellLinkedList.cs
- Compiler.cs
- InsufficientMemoryException.cs
- CodeMemberField.cs
- ScrollChrome.cs
- TdsParserStateObject.cs
- UriPrefixTable.cs
- Predicate.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- EncoderExceptionFallback.cs
- CertificateManager.cs
- ImageList.cs
- ContentElementAutomationPeer.cs
- LocalizableResourceBuilder.cs
- SafeSystemMetrics.cs
- StackSpiller.Temps.cs
- BypassElement.cs
- NavigationWindowAutomationPeer.cs
- TransactionsSectionGroup.cs
- SourceFileInfo.cs
- ArgIterator.cs
- TabItemWrapperAutomationPeer.cs
- CompatibleIComparer.cs
- SqlBulkCopyColumnMapping.cs
- DataTable.cs
- WorkItem.cs
- HijriCalendar.cs
- RawKeyboardInputReport.cs
- XmlDataLoader.cs
- WebPartDisplayMode.cs
- ToolStripDropDownClosedEventArgs.cs
- LOSFormatter.cs
- TextEffect.cs
- Model3DCollection.cs
- ListViewGroupConverter.cs
- ColorContext.cs
- ScrollBar.cs
- SvcMapFileLoader.cs
- ObjectListDataBindEventArgs.cs
- MemberProjectedSlot.cs
- OutputCacheSettings.cs
- URIFormatException.cs
- TextSegment.cs
- IsolatedStoragePermission.cs
- LabelLiteral.cs
- ValidationRuleCollection.cs
- ConsumerConnectionPoint.cs
- ValidationErrorEventArgs.cs
- InputMethodStateChangeEventArgs.cs
- StorageBasedPackageProperties.cs
- ListBindableAttribute.cs
- SynchronizedPool.cs
- GroupedContextMenuStrip.cs
- SafeTimerHandle.cs
- AssemblyAssociatedContentFileAttribute.cs
- SendActivityEventArgs.cs
- DispatcherOperation.cs
- GotoExpression.cs
- DataGridItemAutomationPeer.cs
- Authorization.cs
- OperationDescriptionCollection.cs
- DefinitionBase.cs
- DataPager.cs
- SecurityIdentifierElementCollection.cs
- NotFiniteNumberException.cs
- DataGridTableCollection.cs
- TypeConverterValueSerializer.cs
- WindowsGrip.cs
- EventWaitHandle.cs
- FileEnumerator.cs
- GradientBrush.cs
- FilteredDataSetHelper.cs
- FilteredXmlReader.cs
- ResourceAttributes.cs