Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / LinkLabelLinkClickedEvent.cs / 1305376 / LinkLabelLinkClickedEvent.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; ////// /// [System.Runtime.InteropServices.ComVisible(true)] public class LinkLabelLinkClickedEventArgs : EventArgs { private readonly LinkLabel.Link link; private readonly MouseButtons button; ////// Provides data for the ///event. /// /// /// public LinkLabelLinkClickedEventArgs(LinkLabel.Link link) { this.link = link; this.button = MouseButtons.Left; } public LinkLabelLinkClickedEventArgs(LinkLabel.Link link, MouseButtons button) : this(link) { this.button = button; } ////// Initializes a new instance of the ///class, given the link. /// /// public MouseButtons Button { get { return button; } } ////// Gets the mouseButton which causes the link to be clicked /// ////// /// public LinkLabel.Link Link { get { return link; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets the ///that was clicked. /// // 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; ////// /// [System.Runtime.InteropServices.ComVisible(true)] public class LinkLabelLinkClickedEventArgs : EventArgs { private readonly LinkLabel.Link link; private readonly MouseButtons button; ////// Provides data for the ///event. /// /// /// public LinkLabelLinkClickedEventArgs(LinkLabel.Link link) { this.link = link; this.button = MouseButtons.Left; } public LinkLabelLinkClickedEventArgs(LinkLabel.Link link, MouseButtons button) : this(link) { this.button = button; } ////// Initializes a new instance of the ///class, given the link. /// /// public MouseButtons Button { get { return button; } } ////// Gets the mouseButton which causes the link to be clicked /// ////// /// public LinkLabel.Link Link { get { return link; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets the ///that was clicked. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NullableLongAverageAggregationOperator.cs
- AdornedElementPlaceholder.cs
- CheckBoxList.cs
- SafeUserTokenHandle.cs
- Int32RectConverter.cs
- HandleExceptionArgs.cs
- CommandField.cs
- _SslStream.cs
- TextSyndicationContent.cs
- LinqDataSourceDeleteEventArgs.cs
- querybuilder.cs
- IResourceProvider.cs
- WebServiceTypeData.cs
- UInt64Converter.cs
- TableStyle.cs
- SingleResultAttribute.cs
- DataGridViewTopLeftHeaderCell.cs
- OperandQuery.cs
- ByteAnimationBase.cs
- InstanceDataCollection.cs
- ZipIOExtraField.cs
- SQLByteStorage.cs
- MessagePartDescriptionCollection.cs
- TabletCollection.cs
- BuildManagerHost.cs
- DecimalAverageAggregationOperator.cs
- ObjectQueryProvider.cs
- GACMembershipCondition.cs
- login.cs
- AccessDataSourceDesigner.cs
- XmlSignatureManifest.cs
- WebPartConnectionsConfigureVerb.cs
- WindowsFormsHostAutomationPeer.cs
- StreamResourceInfo.cs
- ToolStripStatusLabel.cs
- SmtpAuthenticationManager.cs
- XmlAttributeAttribute.cs
- ApplicationFileCodeDomTreeGenerator.cs
- HotSpotCollectionEditor.cs
- DataListItemCollection.cs
- AnimationTimeline.cs
- QuotedStringWriteStateInfo.cs
- DockingAttribute.cs
- BulletChrome.cs
- EntityDataSourceState.cs
- BitmapImage.cs
- BlurEffect.cs
- ContentPresenter.cs
- ColumnClickEvent.cs
- SoapAttributeOverrides.cs
- BaseTreeIterator.cs
- AmbientLight.cs
- LambdaCompiler.ControlFlow.cs
- Rect3DConverter.cs
- TimeoutConverter.cs
- LinkLabel.cs
- ParserStreamGeometryContext.cs
- PropertyPanel.cs
- TreeBuilder.cs
- WindowsContainer.cs
- ClaimSet.cs
- SharedConnectionInfo.cs
- SqlConnectionString.cs
- TypeResolvingOptions.cs
- EditBehavior.cs
- DesignerValidatorAdapter.cs
- ViewCellSlot.cs
- OracleInternalConnection.cs
- safex509handles.cs
- JpegBitmapDecoder.cs
- SpeechAudioFormatInfo.cs
- AuthenticatingEventArgs.cs
- ComponentCollection.cs
- HMAC.cs
- NextPreviousPagerField.cs
- SimpleNameService.cs
- ActivityCodeDomSerializer.cs
- SourceFileInfo.cs
- ServiceChannel.cs
- Binding.cs
- RadioButton.cs
- WorkflowInstanceSuspendedRecord.cs
- FontSource.cs
- ByteRangeDownloader.cs
- IdentityNotMappedException.cs
- ListControl.cs
- DeferredTextReference.cs
- PropertyCollection.cs
- XmlSchemaAttributeGroup.cs
- VScrollProperties.cs
- SettingsProviderCollection.cs
- HyperlinkAutomationPeer.cs
- CompilerGlobalScopeAttribute.cs
- Queue.cs
- AccessControlList.cs
- DataGridColumnStyleMappingNameEditor.cs
- ReadOnlyCollection.cs
- FunctionImportElement.cs
- DesignerLoader.cs
- Operators.cs