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
- CellConstant.cs
- SwitchElementsCollection.cs
- TextCollapsingProperties.cs
- XPathAncestorIterator.cs
- SafeNativeMethods.cs
- DataGridColumnHeader.cs
- ConfigurationStrings.cs
- XmlEntityReference.cs
- TriState.cs
- SHA512.cs
- StylusOverProperty.cs
- FixedPageStructure.cs
- DropAnimation.xaml.cs
- TextPointer.cs
- Control.cs
- CharacterHit.cs
- HttpResponse.cs
- TableSectionStyle.cs
- UnitySerializationHolder.cs
- AsyncPostBackTrigger.cs
- XmlNamespaceMapping.cs
- ProfileManager.cs
- DefaultEventAttribute.cs
- securitycriticaldataClass.cs
- InitializerFacet.cs
- JumpItem.cs
- TdsValueSetter.cs
- QfeChecker.cs
- ListBindableAttribute.cs
- ImpersonateTokenRef.cs
- WindowsSlider.cs
- IsolatedStorage.cs
- PointLight.cs
- ApplicationDirectory.cs
- ParserStreamGeometryContext.cs
- OutOfMemoryException.cs
- FileLevelControlBuilderAttribute.cs
- Int32CAMarshaler.cs
- XomlCompilerError.cs
- DiscoveryVersion.cs
- WebBrowser.cs
- Parser.cs
- EditorZone.cs
- COM2ExtendedUITypeEditor.cs
- SecurityIdentifierElementCollection.cs
- ReflectionUtil.cs
- ScrollEvent.cs
- PopupRootAutomationPeer.cs
- AssertSection.cs
- CharEnumerator.cs
- Triangle.cs
- NextPreviousPagerField.cs
- BitmapCodecInfo.cs
- WSHttpTransportSecurityElement.cs
- SchemaCreator.cs
- PolyQuadraticBezierSegment.cs
- Set.cs
- XmlSchemaCompilationSettings.cs
- KeyNotFoundException.cs
- ServiceObjectContainer.cs
- DataService.cs
- EDesignUtil.cs
- EdmComplexTypeAttribute.cs
- BinaryFormatter.cs
- ClonableStack.cs
- ChildDocumentBlock.cs
- DataGridTextColumn.cs
- MdiWindowListItemConverter.cs
- GPPOINT.cs
- XmlEventCache.cs
- NameValueSectionHandler.cs
- NonVisualControlAttribute.cs
- ToolboxBitmapAttribute.cs
- BreakRecordTable.cs
- TypeNameConverter.cs
- SpellerError.cs
- VBCodeProvider.cs
- XPathSelectionIterator.cs
- StatusBarItemAutomationPeer.cs
- TableAdapterManagerNameHandler.cs
- DataObjectAttribute.cs
- SqlDataSourceQuery.cs
- ObjectTag.cs
- TickBar.cs
- QueryResult.cs
- AccessViolationException.cs
- MemberRelationshipService.cs
- WebPartVerbCollection.cs
- SqlLiftWhereClauses.cs
- FocusChangedEventArgs.cs
- ColumnMapVisitor.cs
- FtpWebRequest.cs
- InvalidProgramException.cs
- PocoEntityKeyStrategy.cs
- SmtpLoginAuthenticationModule.cs
- NoneExcludedImageIndexConverter.cs
- ButtonPopupAdapter.cs
- BuildManager.cs
- HTMLTagNameToTypeMapper.cs
- DataGridLinkButton.cs