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
- EdmToObjectNamespaceMap.cs
- PcmConverter.cs
- HwndAppCommandInputProvider.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- WindowsEditBoxRange.cs
- BitmapEffect.cs
- SetterBaseCollection.cs
- HyperLinkStyle.cs
- AnimationStorage.cs
- HttpModulesSection.cs
- ClientScriptManager.cs
- OciLobLocator.cs
- TextServicesContext.cs
- ManagedFilter.cs
- AppSecurityManager.cs
- ExternalDataExchangeService.cs
- ThousandthOfEmRealPoints.cs
- DocumentXPathNavigator.cs
- ResourceWriter.cs
- PageRequestManager.cs
- StylusOverProperty.cs
- IRCollection.cs
- CodeCatchClauseCollection.cs
- XPathBuilder.cs
- ApplicationDirectoryMembershipCondition.cs
- cookiecollection.cs
- COM2PropertyDescriptor.cs
- BinHexEncoder.cs
- recordstatescratchpad.cs
- CodeAttributeDeclarationCollection.cs
- CodeTypeParameter.cs
- FileDetails.cs
- FormsAuthenticationConfiguration.cs
- BuildProviderCollection.cs
- Propagator.Evaluator.cs
- CustomBindingCollectionElement.cs
- RotateTransform.cs
- XamlContextStack.cs
- ConnectionStringSettingsCollection.cs
- ValueSerializerAttribute.cs
- QueryOutputWriter.cs
- X509Extension.cs
- OracleCommand.cs
- MethodAccessException.cs
- AssemblyBuilder.cs
- CustomAttributeFormatException.cs
- RSAPKCS1KeyExchangeFormatter.cs
- SctClaimSerializer.cs
- FlowSwitch.cs
- AssemblyInfo.cs
- DefaultValidator.cs
- TabletCollection.cs
- RoutingService.cs
- Calendar.cs
- FrameworkContextData.cs
- RecipientInfo.cs
- SizeChangedEventArgs.cs
- SystemIcmpV6Statistics.cs
- SizeChangedInfo.cs
- DbParameterHelper.cs
- TextCompositionEventArgs.cs
- ResourceWriter.cs
- GiveFeedbackEvent.cs
- FlatButtonAppearance.cs
- SapiRecoContext.cs
- NumberSubstitution.cs
- SqlMethodTransformer.cs
- DocumentPageViewAutomationPeer.cs
- ParenthesizePropertyNameAttribute.cs
- RuntimeIdentifierPropertyAttribute.cs
- XMLUtil.cs
- HttpHandlerAction.cs
- XmlNamespaceManager.cs
- CoTaskMemHandle.cs
- ConfigurationCollectionAttribute.cs
- CannotUnloadAppDomainException.cs
- WhitespaceRule.cs
- XmlSequenceWriter.cs
- FlowDocumentScrollViewer.cs
- DataRow.cs
- EventProvider.cs
- RowType.cs
- InboundActivityHelper.cs
- DurableErrorHandler.cs
- DayRenderEvent.cs
- LogExtentCollection.cs
- ImageKeyConverter.cs
- ValidationPropertyAttribute.cs
- SoapInteropTypes.cs
- IPipelineRuntime.cs
- Literal.cs
- indexingfiltermarshaler.cs
- ImageMap.cs
- IIS7UserPrincipal.cs
- OSFeature.cs
- SessionEndingCancelEventArgs.cs
- CodeSnippetStatement.cs
- ADMembershipProvider.cs
- precedingsibling.cs
- BinaryMethodMessage.cs