Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / LinkLabelLinkClickedEvent.cs / 1 / 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
- SqlResolver.cs
- DmlSqlGenerator.cs
- TextParagraph.cs
- ToolStripCollectionEditor.cs
- EventArgs.cs
- ControlParameter.cs
- ColorAnimationUsingKeyFrames.cs
- MDIControlStrip.cs
- ImageListUtils.cs
- SiteOfOriginContainer.cs
- OracleCommandSet.cs
- DataServiceEntityAttribute.cs
- SqlHelper.cs
- PnrpPermission.cs
- Menu.cs
- ValueSerializer.cs
- ServiceRoute.cs
- DynamicDocumentPaginator.cs
- ICollection.cs
- ConsoleKeyInfo.cs
- TextServicesHost.cs
- ContentDisposition.cs
- UITypeEditor.cs
- QueryAccessibilityHelpEvent.cs
- InkCanvasSelection.cs
- MaskPropertyEditor.cs
- SqlNamer.cs
- Int64Storage.cs
- PolyBezierSegment.cs
- Merger.cs
- JsonClassDataContract.cs
- SizeAnimation.cs
- MetaModel.cs
- CreateRefExpr.cs
- AlgoModule.cs
- ElementHostPropertyMap.cs
- NetCodeGroup.cs
- XmlILStorageConverter.cs
- RuntimeArgumentHandle.cs
- PeerService.cs
- MatrixStack.cs
- DocobjHost.cs
- Keywords.cs
- FormatSettings.cs
- Win32SafeHandles.cs
- AliasedSlot.cs
- ButtonColumn.cs
- NumericUpDown.cs
- CompModSwitches.cs
- DataSourceDescriptorCollection.cs
- SqlTransaction.cs
- UntypedNullExpression.cs
- GroupDescription.cs
- HtmlFormWrapper.cs
- Formatter.cs
- CookieParameter.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- TypeBuilder.cs
- SubordinateTransaction.cs
- RadioButtonBaseAdapter.cs
- SqlBinder.cs
- CompilerErrorCollection.cs
- FigureParagraph.cs
- SimpleMailWebEventProvider.cs
- CheckBoxBaseAdapter.cs
- AccessibleObject.cs
- GraphicsPath.cs
- ElapsedEventArgs.cs
- HtmlControl.cs
- NullableIntAverageAggregationOperator.cs
- InstanceHandleReference.cs
- TextContainerChangeEventArgs.cs
- DbProviderFactory.cs
- RsaSecurityTokenAuthenticator.cs
- CompilerParameters.cs
- XPathBinder.cs
- FormViewRow.cs
- TextServicesContext.cs
- documentsequencetextview.cs
- Rijndael.cs
- ToolStripItemCollection.cs
- OptimalBreakSession.cs
- NotifyCollectionChangedEventArgs.cs
- TempFiles.cs
- ConsumerConnectionPoint.cs
- ConnectionStringsExpressionEditor.cs
- ComboBox.cs
- Method.cs
- ChannelSinkStacks.cs
- SizeAnimation.cs
- XamlSerializerUtil.cs
- HwndHostAutomationPeer.cs
- WebContext.cs
- _ProxyChain.cs
- TextEndOfLine.cs
- XMLSchema.cs
- PropertyDescriptorGridEntry.cs
- IDispatchConstantAttribute.cs
- ServiceParser.cs
- SqlNotificationRequest.cs