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
- SamlConditions.cs
- httpserverutility.cs
- SmtpReplyReaderFactory.cs
- EntityContainerRelationshipSet.cs
- HexParser.cs
- EntryPointNotFoundException.cs
- AssociationSet.cs
- IisTraceListener.cs
- ISAPIRuntime.cs
- PropertyItemInternal.cs
- PropertySegmentSerializationProvider.cs
- Console.cs
- FormDesigner.cs
- CssStyleCollection.cs
- ToolStripItemImageRenderEventArgs.cs
- StrongName.cs
- EntityContainerEmitter.cs
- GridPatternIdentifiers.cs
- AxisAngleRotation3D.cs
- LinkedList.cs
- ColumnWidthChangingEvent.cs
- HttpContext.cs
- CompilerCollection.cs
- Accessors.cs
- StylusPointPropertyId.cs
- HttpCapabilitiesEvaluator.cs
- SoapSchemaImporter.cs
- ProtectedProviderSettings.cs
- odbcmetadatacolumnnames.cs
- Pointer.cs
- OptionalMessageQuery.cs
- SingleSelectRootGridEntry.cs
- WindowsContainer.cs
- LinkTarget.cs
- FormViewDeletedEventArgs.cs
- HtmlTableCell.cs
- HostingEnvironmentException.cs
- MobileErrorInfo.cs
- CompositeDispatchFormatter.cs
- FixUpCollection.cs
- ArgumentException.cs
- ChameleonKey.cs
- LocalFileSettingsProvider.cs
- TypeLoadException.cs
- PerformanceCounterNameAttribute.cs
- CompositeDataBoundControl.cs
- ObjectResult.cs
- ClassHandlersStore.cs
- _SafeNetHandles.cs
- CollectionDataContractAttribute.cs
- CodeLabeledStatement.cs
- OleDbDataReader.cs
- MarkedHighlightComponent.cs
- DatatypeImplementation.cs
- BitStack.cs
- DefaultSerializationProviderAttribute.cs
- GenerateTemporaryAssemblyTask.cs
- ListView.cs
- BuilderPropertyEntry.cs
- SqlDataSourceStatusEventArgs.cs
- NameValuePermission.cs
- Calendar.cs
- WorkerProcess.cs
- ProtocolViolationException.cs
- ClassicBorderDecorator.cs
- SetIndexBinder.cs
- ApplicationException.cs
- PtsContext.cs
- XmlAttributeProperties.cs
- XmlWrappingWriter.cs
- Assert.cs
- ButtonField.cs
- VisualStyleInformation.cs
- XmlKeywords.cs
- ZipFileInfo.cs
- ControlBuilder.cs
- X509CertificateInitiatorServiceCredential.cs
- ProofTokenCryptoHandle.cs
- MimeTypePropertyAttribute.cs
- OleDbError.cs
- StagingAreaInputItem.cs
- ProviderMetadataCachedInformation.cs
- httpstaticobjectscollection.cs
- ValidationErrorCollection.cs
- EventLog.cs
- CryptographicAttribute.cs
- BrowserCapabilitiesCompiler.cs
- lengthconverter.cs
- SystemIcmpV4Statistics.cs
- ToolBarOverflowPanel.cs
- CfgParser.cs
- Error.cs
- AdornerPresentationContext.cs
- InProcStateClientManager.cs
- WriteableBitmap.cs
- MarkerProperties.cs
- PrintPageEvent.cs
- WindowsImpersonationContext.cs
- PeerChannelFactory.cs
- PostBackTrigger.cs