Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- BrowserPolicyValidator.cs
- FileInfo.cs
- DataGridViewTopLeftHeaderCell.cs
- AppLevelCompilationSectionCache.cs
- XmlQualifiedName.cs
- Cursor.cs
- StylusCaptureWithinProperty.cs
- DataGridAddNewRow.cs
- Clause.cs
- SQLString.cs
- Quad.cs
- ToolboxItemFilterAttribute.cs
- MSAANativeProvider.cs
- SignatureToken.cs
- RelationshipConverter.cs
- __ComObject.cs
- PanelStyle.cs
- Completion.cs
- ThicknessAnimation.cs
- ShapeTypeface.cs
- FlowDocumentPage.cs
- DynamicArgumentDialog.cs
- BitmapEffectInput.cs
- BorderSidesEditor.cs
- EnlistmentState.cs
- Utilities.cs
- SerializationStore.cs
- ReliableChannelListener.cs
- FilteredAttributeCollection.cs
- DebugView.cs
- StdValidatorsAndConverters.cs
- SecurityPolicySection.cs
- ImageSourceValueSerializer.cs
- MobileControlsSectionHelper.cs
- ServiceControllerDesigner.cs
- SignatureToken.cs
- PropertyDescriptorCollection.cs
- EventWaitHandle.cs
- ReaderWriterLockWrapper.cs
- TreeViewItem.cs
- ShaderEffect.cs
- TextElementCollectionHelper.cs
- LicenseProviderAttribute.cs
- SrgsRulesCollection.cs
- ToolStripContainer.cs
- ConfigurationException.cs
- HttpWriter.cs
- ADMembershipUser.cs
- UrlAuthorizationModule.cs
- TdsParserSessionPool.cs
- DynamicControlParameter.cs
- DynamicQueryStringParameter.cs
- StringKeyFrameCollection.cs
- _ListenerAsyncResult.cs
- DataGridViewSelectedCellCollection.cs
- ToolBarDesigner.cs
- LocatorGroup.cs
- InternalConfigHost.cs
- ThreadStaticAttribute.cs
- ListViewHitTestInfo.cs
- StrokeNode.cs
- StrokeDescriptor.cs
- WindowsPen.cs
- XmlSchemas.cs
- XmlUtil.cs
- RegexTree.cs
- ApplicationCommands.cs
- Html32TextWriter.cs
- ObjectDataSourceFilteringEventArgs.cs
- ElementUtil.cs
- DataGridLinkButton.cs
- RightsManagementErrorHandler.cs
- SqlCaseSimplifier.cs
- CodeArrayCreateExpression.cs
- CompositeDataBoundControl.cs
- InternalCache.cs
- CustomWebEventKey.cs
- GroupBox.cs
- ServerIdentity.cs
- DurationConverter.cs
- GuidTagList.cs
- KnownTypes.cs
- RuntimeArgumentHandle.cs
- ImmComposition.cs
- MethodImplAttribute.cs
- DefaultValueConverter.cs
- LinqDataSourceHelper.cs
- TypeForwardedFromAttribute.cs
- ExpressionPrefixAttribute.cs
- HtmlInputControl.cs
- RegionIterator.cs
- StringFormat.cs
- MemberHolder.cs
- ForeignKeyConstraint.cs
- TableCell.cs
- SoapAttributes.cs
- EntityDataSourceEntitySetNameItem.cs
- WebPartConnectionsCancelEventArgs.cs
- UncommonField.cs
- ReadOnlyNameValueCollection.cs