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
- Geometry.cs
- HttpHandlerActionCollection.cs
- MenuItem.cs
- FastEncoder.cs
- InvokePattern.cs
- ObjectResult.cs
- TransactionChannelFactory.cs
- XmlSchemaInclude.cs
- DesignerAutoFormat.cs
- StateChangeEvent.cs
- Gdiplus.cs
- Message.cs
- ConnectionInterfaceCollection.cs
- NotificationContext.cs
- AutoFocusStyle.xaml.cs
- NegationPusher.cs
- InkCanvasInnerCanvas.cs
- AdministrationHelpers.cs
- EventLogEntry.cs
- ActivityPropertyReference.cs
- RoleManagerModule.cs
- HostingEnvironmentWrapper.cs
- Point3DKeyFrameCollection.cs
- ServiceReference.cs
- TransmissionStrategy.cs
- Underline.cs
- DependencyPropertyAttribute.cs
- DocumentViewerBaseAutomationPeer.cs
- PointAnimationUsingPath.cs
- Rect3D.cs
- DataListGeneralPage.cs
- DataRelationCollection.cs
- DataGridViewElement.cs
- TypeSchema.cs
- DataGridViewSelectedRowCollection.cs
- XmlSchemaExporter.cs
- DragEvent.cs
- WebControlAdapter.cs
- DataBindingExpressionBuilder.cs
- GenericWebPart.cs
- MobileControlPersister.cs
- BitmapDownload.cs
- QueryContinueDragEventArgs.cs
- AppSettingsExpressionBuilder.cs
- SrgsRulesCollection.cs
- RemotingConfiguration.cs
- ListSortDescriptionCollection.cs
- ImageCodecInfoPrivate.cs
- SHA1Managed.cs
- keycontainerpermission.cs
- XmlException.cs
- DataGridItem.cs
- DrawingContextWalker.cs
- TcpConnectionPoolSettingsElement.cs
- ReadOnlyHierarchicalDataSource.cs
- ServerIdentity.cs
- OperatingSystem.cs
- GregorianCalendar.cs
- SourceSwitch.cs
- MDIControlStrip.cs
- ColumnWidthChangingEvent.cs
- TagPrefixCollection.cs
- SimpleNameService.cs
- NavigationHelper.cs
- ReadOnlyTernaryTree.cs
- RangeValueProviderWrapper.cs
- SharedPersonalizationStateInfo.cs
- DbParameterCollectionHelper.cs
- TableFieldsEditor.cs
- DragEvent.cs
- ErrorFormatter.cs
- ToolTipService.cs
- CodeCatchClauseCollection.cs
- CodeNamespace.cs
- ListParaClient.cs
- DefaultPropertiesToSend.cs
- QilReplaceVisitor.cs
- Calendar.cs
- URLString.cs
- StringAttributeCollection.cs
- UnsafeMethods.cs
- Propagator.cs
- EncoderFallback.cs
- ContentDefinition.cs
- FileDialog.cs
- ConnectionManagementElementCollection.cs
- WinEventTracker.cs
- EntitySetDataBindingList.cs
- TextProperties.cs
- ListenerAdapter.cs
- DateTimeUtil.cs
- ControlValuePropertyAttribute.cs
- LogAppendAsyncResult.cs
- ColorDialog.cs
- Atom10FormatterFactory.cs
- WindowsIPAddress.cs
- DictationGrammar.cs
- XmlSchemaSet.cs
- XmlRawWriter.cs
- LinkedResourceCollection.cs