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
- ObjectSet.cs
- Canonicalizers.cs
- PackWebRequestFactory.cs
- Grant.cs
- WebPartCloseVerb.cs
- IntranetCredentialPolicy.cs
- ArrayElementGridEntry.cs
- MeasurementDCInfo.cs
- EntityDataSourceValidationException.cs
- BaseResourcesBuildProvider.cs
- AuthenticationSection.cs
- PartialTrustHelpers.cs
- BaseValidator.cs
- EditorPart.cs
- DataGridViewRowPostPaintEventArgs.cs
- ISCIIEncoding.cs
- SequenceFullException.cs
- ProcessHost.cs
- AbandonedMutexException.cs
- ListParagraph.cs
- CallSite.cs
- DbProviderSpecificTypePropertyAttribute.cs
- SoapAttributeAttribute.cs
- IntPtr.cs
- RemoteCryptoDecryptRequest.cs
- TreeViewHitTestInfo.cs
- CodeGenerator.cs
- DrawListViewSubItemEventArgs.cs
- XmlBinaryReader.cs
- ScrollBarAutomationPeer.cs
- TextRunCache.cs
- XslAstAnalyzer.cs
- DbDataReader.cs
- PaintEvent.cs
- SoapIgnoreAttribute.cs
- EmbeddedMailObject.cs
- DataReceivedEventArgs.cs
- TextContainer.cs
- TextSpanModifier.cs
- MetaModel.cs
- NumericExpr.cs
- DataBinder.cs
- OrderedEnumerableRowCollection.cs
- QueryReaderSettings.cs
- AnnotationStore.cs
- PropertyEmitterBase.cs
- TypeConverterAttribute.cs
- TreeView.cs
- MatrixValueSerializer.cs
- ApplicationActivator.cs
- BaseUriHelper.cs
- SequenceFullException.cs
- UndoEngine.cs
- PolygonHotSpot.cs
- PageThemeParser.cs
- KnownBoxes.cs
- MarshalDirectiveException.cs
- AncestorChangedEventArgs.cs
- WebPartChrome.cs
- ChannelCacheSettings.cs
- CodeEntryPointMethod.cs
- DropDownHolder.cs
- ListSurrogate.cs
- BaseCAMarshaler.cs
- IImplicitResourceProvider.cs
- DomainConstraint.cs
- QilTargetType.cs
- DataSourceCacheDurationConverter.cs
- ReadOnlyDictionary.cs
- safelink.cs
- WebBrowserSiteBase.cs
- BulletDecorator.cs
- LineBreak.cs
- QuotedPrintableStream.cs
- SelectedGridItemChangedEvent.cs
- CompiledRegexRunnerFactory.cs
- GPPOINT.cs
- MembershipValidatePasswordEventArgs.cs
- UInt16.cs
- KeyPressEvent.cs
- NodeLabelEditEvent.cs
- LassoSelectionBehavior.cs
- OAVariantLib.cs
- MultiSelectRootGridEntry.cs
- XmlChildNodes.cs
- RawKeyboardInputReport.cs
- ScriptReference.cs
- IdentifierService.cs
- FileNotFoundException.cs
- RightsManagementEncryptedStream.cs
- HelpKeywordAttribute.cs
- ListViewContainer.cs
- EdmType.cs
- ObjectDataSourceFilteringEventArgs.cs
- DataControlImageButton.cs
- TextProviderWrapper.cs
- Timer.cs
- PageBreakRecord.cs
- DSGeneratorProblem.cs
- IfAction.cs