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 / 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
- TrackingStringDictionary.cs
- StateManagedCollection.cs
- Executor.cs
- Mouse.cs
- PipelineModuleStepContainer.cs
- AvTrace.cs
- ResourceExpressionBuilder.cs
- Unit.cs
- RepeaterItemEventArgs.cs
- ReliableMessagingHelpers.cs
- UrlUtility.cs
- FixedSchema.cs
- MultipartContentParser.cs
- CombinedGeometry.cs
- SwitchDesigner.xaml.cs
- messageonlyhwndwrapper.cs
- StateItem.cs
- ZoneIdentityPermission.cs
- DataGridItem.cs
- ClassicBorderDecorator.cs
- ChildDocumentBlock.cs
- TextRangeEditTables.cs
- SessionSwitchEventArgs.cs
- TrustManagerPromptUI.cs
- XmlCharType.cs
- BaseDataBoundControl.cs
- SqlUdtInfo.cs
- SafeNativeMethodsMilCoreApi.cs
- DesignerHelpers.cs
- StylusSystemGestureEventArgs.cs
- HttpVersion.cs
- ExpanderAutomationPeer.cs
- IgnoreFlushAndCloseStream.cs
- ListViewDeletedEventArgs.cs
- ExpressionBuilder.cs
- CompensationHandlingFilter.cs
- DefaultTypeArgumentAttribute.cs
- StylusEditingBehavior.cs
- ParentControlDesigner.cs
- TreeNode.cs
- GroupByExpressionRewriter.cs
- SystemIcmpV4Statistics.cs
- Section.cs
- SocketSettings.cs
- WebServiceParameterData.cs
- FormsAuthenticationTicket.cs
- ConfigXmlWhitespace.cs
- CodeAccessPermission.cs
- AssertSection.cs
- FixedStringLookup.cs
- StateMachineAction.cs
- DataSourceBooleanViewSchemaConverter.cs
- InvalidProgramException.cs
- FormatConvertedBitmap.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- DataGridSortCommandEventArgs.cs
- ConnectionStringsSection.cs
- EdmTypeAttribute.cs
- SerialStream.cs
- RoleGroupCollection.cs
- ValueExpressions.cs
- BasePattern.cs
- UnsafeNativeMethods.cs
- UrlPath.cs
- uribuilder.cs
- FixedSOMSemanticBox.cs
- ByteStreamMessageEncoder.cs
- RequestCacheEntry.cs
- SecurityTimestamp.cs
- SynchronizedInputAdaptor.cs
- Matrix.cs
- ChainOfDependencies.cs
- BitmapEffectOutputConnector.cs
- CreateParams.cs
- DirectoryRootQuery.cs
- VisualStyleRenderer.cs
- ArraySubsetEnumerator.cs
- BamlTreeNode.cs
- ISessionStateStore.cs
- WindowsAuthenticationEventArgs.cs
- BoolExpression.cs
- TextEvent.cs
- FileDataSourceCache.cs
- TreeWalker.cs
- COM2ColorConverter.cs
- DataContract.cs
- DataGridViewColumnTypePicker.cs
- StatusStrip.cs
- RegexCompiler.cs
- PartialArray.cs
- ColorAnimationBase.cs
- TerminatorSinks.cs
- GACMembershipCondition.cs
- SystemIcmpV4Statistics.cs
- SiteMapNodeItemEventArgs.cs
- ScrollableControl.cs
- TerminatingOperationBehavior.cs
- Visitor.cs
- DateTimeSerializationSection.cs
- ColumnWidthChangedEvent.cs