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
- User.cs
- ColorContextHelper.cs
- WebPartRestoreVerb.cs
- MethodBuilder.cs
- ConfigurationLocation.cs
- JavaScriptString.cs
- DispatchProxy.cs
- DiscardableAttribute.cs
- invalidudtexception.cs
- IdleTimeoutMonitor.cs
- ITextView.cs
- TransformerTypeCollection.cs
- HandlerBase.cs
- LabelEditEvent.cs
- ColorConvertedBitmap.cs
- CodeObject.cs
- EDesignUtil.cs
- XpsInterleavingPolicy.cs
- ApplicationDirectoryMembershipCondition.cs
- ResourceContainer.cs
- StateDesigner.cs
- DrawingContext.cs
- IndicCharClassifier.cs
- WebPartCatalogCloseVerb.cs
- CultureTable.cs
- StylusEventArgs.cs
- GridItem.cs
- TextSelectionHighlightLayer.cs
- SessionStateItemCollection.cs
- Stack.cs
- WSFederationHttpBinding.cs
- HorizontalAlignConverter.cs
- NavigationWindow.cs
- GetLedgerEntryForRecipientRequest.cs
- SelectionChangedEventArgs.cs
- DetailsViewModeEventArgs.cs
- ItemAutomationPeer.cs
- BinHexEncoder.cs
- adornercollection.cs
- WindowsGraphicsWrapper.cs
- TableLayoutPanel.cs
- SqlNamer.cs
- ListItemsPage.cs
- InfoCardXmlSerializer.cs
- ContentIterators.cs
- ParameterReplacerVisitor.cs
- CheckBoxList.cs
- ListViewEditEventArgs.cs
- XmlSchemaAnnotated.cs
- KnownTypesHelper.cs
- XmlSerializerFactory.cs
- NestPullup.cs
- RemotingService.cs
- SiteOfOriginPart.cs
- TypeDescriptionProviderAttribute.cs
- SiteMapProvider.cs
- RuntimeResourceSet.cs
- DebugHandleTracker.cs
- SetterBaseCollection.cs
- GroupLabel.cs
- GeometryHitTestParameters.cs
- SqlFlattener.cs
- ParseHttpDate.cs
- CodeGotoStatement.cs
- SoapReflector.cs
- SecurityPolicySection.cs
- AxisAngleRotation3D.cs
- DescriptionAttribute.cs
- WorkflowDefinitionContext.cs
- EntityDataSourceDataSelection.cs
- DBConnection.cs
- CalendarAutoFormat.cs
- OleDbRowUpdatedEvent.cs
- KnownBoxes.cs
- IriParsingElement.cs
- DataGridTableCollection.cs
- RadioButtonFlatAdapter.cs
- PropertyKey.cs
- CompositeScriptReferenceEventArgs.cs
- TextEditorParagraphs.cs
- precedingquery.cs
- ChannelTokenTypeConverter.cs
- RegistryPermission.cs
- SerializationInfoEnumerator.cs
- DatePickerTextBox.cs
- WebPartTracker.cs
- TriggerBase.cs
- ConnectionPoint.cs
- ContractsBCL.cs
- RenderContext.cs
- MgmtConfigurationRecord.cs
- ObjectConverter.cs
- AnimationStorage.cs
- Events.cs
- ParameterBuilder.cs
- RightsManagementPermission.cs
- NominalTypeEliminator.cs
- DbDataSourceEnumerator.cs
- StringValidatorAttribute.cs
- safemediahandle.cs