Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / LabelEditEvent.cs / 1305376 / 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
- HyperLinkColumn.cs
- BinaryConverter.cs
- AspNetCompatibilityRequirementsAttribute.cs
- LogicalExpr.cs
- DbgUtil.cs
- ContentWrapperAttribute.cs
- XmlSerializationWriter.cs
- DataGrid.cs
- ADMembershipProvider.cs
- AttributeCollection.cs
- HtmlShimManager.cs
- ConfigXmlCDataSection.cs
- RegisteredArrayDeclaration.cs
- CodeAttributeArgument.cs
- InputProviderSite.cs
- SharedDp.cs
- FunctionDescription.cs
- ThreadStateException.cs
- ReliableChannelListener.cs
- HtmlElementEventArgs.cs
- NamespaceListProperty.cs
- SettingsContext.cs
- LogEntryHeaderDeserializer.cs
- BaseContextMenu.cs
- ZoneIdentityPermission.cs
- SqlCrossApplyToCrossJoin.cs
- UshortList2.cs
- CoreChannel.cs
- EUCJPEncoding.cs
- XPathAncestorIterator.cs
- MouseOverProperty.cs
- ConfigurationManagerHelperFactory.cs
- SQLInt64Storage.cs
- ZoneButton.cs
- SelectionItemPattern.cs
- TdsParserStaticMethods.cs
- DependencyPropertyAttribute.cs
- SqlDataSourceConnectionPanel.cs
- Geometry3D.cs
- StandardToolWindows.cs
- BaseCodePageEncoding.cs
- Animatable.cs
- Random.cs
- PropertyChangedEventArgs.cs
- FormViewPagerRow.cs
- XmlCharacterData.cs
- QuaternionAnimation.cs
- HostingEnvironmentException.cs
- ValidatedControlConverter.cs
- ChildTable.cs
- PropertyChangingEventArgs.cs
- FocusWithinProperty.cs
- AsymmetricSignatureFormatter.cs
- SQLMoneyStorage.cs
- BinaryConverter.cs
- DateTimeConverter.cs
- WeakRefEnumerator.cs
- RegexRunner.cs
- GridLengthConverter.cs
- SystemEvents.cs
- ConsumerConnectionPoint.cs
- ProcessingInstructionAction.cs
- AutomationPatternInfo.cs
- ReadOnlyTernaryTree.cs
- RelationshipEndMember.cs
- ConnectorDragDropGlyph.cs
- ListParagraph.cs
- LinqDataSourceDeleteEventArgs.cs
- HiddenField.cs
- ArgumentValueSerializer.cs
- EntityViewGenerationAttribute.cs
- EntityDescriptor.cs
- PermissionAttributes.cs
- PermissionSetTriple.cs
- ColumnResult.cs
- TextDecorationLocationValidation.cs
- DataGridViewCellLinkedList.cs
- OciEnlistContext.cs
- FixedMaxHeap.cs
- MultiTargetingUtil.cs
- FamilyMapCollection.cs
- RectangleF.cs
- UnknownBitmapEncoder.cs
- CodeParameterDeclarationExpression.cs
- MonthChangedEventArgs.cs
- WsdlBuildProvider.cs
- SafeCoTaskMem.cs
- AutoGeneratedFieldProperties.cs
- ListBindingHelper.cs
- Polyline.cs
- StringValueConverter.cs
- DayRenderEvent.cs
- DesignerSelectionListAdapter.cs
- Endpoint.cs
- UpdatePanelControlTrigger.cs
- FormViewDeletedEventArgs.cs
- StatusBarPanelClickEvent.cs
- MSAAEventDispatcher.cs
- ImportContext.cs
- ClientUtils.cs