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
- FrameAutomationPeer.cs
- SubclassTypeValidator.cs
- TdsValueSetter.cs
- XmlSchemaValidationException.cs
- TagPrefixInfo.cs
- MetaModel.cs
- messageonlyhwndwrapper.cs
- GridToolTip.cs
- SetStoryboardSpeedRatio.cs
- FrameworkRichTextComposition.cs
- ContextMenuService.cs
- OLEDB_Util.cs
- GenericAuthenticationEventArgs.cs
- ConfigUtil.cs
- RoleManagerModule.cs
- PowerEase.cs
- TextHintingModeValidation.cs
- ColumnPropertiesGroup.cs
- DBConnection.cs
- SqlDataReader.cs
- AttributeCollection.cs
- Opcode.cs
- PartEditor.cs
- CodeGotoStatement.cs
- Scripts.cs
- ObjectDisposedException.cs
- TypeEnumerableViewSchema.cs
- UIPermission.cs
- ContainerVisual.cs
- IsolatedStorageFile.cs
- CallInfo.cs
- HMACSHA512.cs
- UndirectedGraph.cs
- DesigntimeLicenseContext.cs
- ArithmeticException.cs
- StringArrayConverter.cs
- recordstatefactory.cs
- LambdaCompiler.Logical.cs
- ConnectionConsumerAttribute.cs
- _Rfc2616CacheValidators.cs
- CountdownEvent.cs
- ImageBrush.cs
- ButtonField.cs
- SqlDataSourceCache.cs
- X509Certificate2Collection.cs
- DataListItemEventArgs.cs
- WebHttpBindingCollectionElement.cs
- RequiredFieldValidator.cs
- ComponentCommands.cs
- OletxDependentTransaction.cs
- List.cs
- BeginGetFileNameFromUserRequest.cs
- RtType.cs
- _FixedSizeReader.cs
- WebUtil.cs
- XPathArrayIterator.cs
- NameValuePair.cs
- Substitution.cs
- MenuItemBindingCollection.cs
- _HeaderInfo.cs
- DigitalSignatureProvider.cs
- SimpleWorkerRequest.cs
- CodeParameterDeclarationExpressionCollection.cs
- BitmapEffectInput.cs
- MulticastNotSupportedException.cs
- ListViewInsertionMark.cs
- WhiteSpaceTrimStringConverter.cs
- TextEvent.cs
- BufferModesCollection.cs
- Column.cs
- SmiConnection.cs
- Message.cs
- UdpReplyToBehavior.cs
- TextTrailingWordEllipsis.cs
- EndpointAddressProcessor.cs
- DelegateSerializationHolder.cs
- TypeFieldSchema.cs
- shaper.cs
- DataRowCollection.cs
- ParameterModifier.cs
- FileNotFoundException.cs
- CoreSwitches.cs
- X509IssuerSerialKeyIdentifierClause.cs
- BooleanKeyFrameCollection.cs
- CallTemplateAction.cs
- DateTimeConverter.cs
- Connector.xaml.cs
- OracleParameterBinding.cs
- ItemAutomationPeer.cs
- NamespaceCollection.cs
- SourceItem.cs
- TemplateInstanceAttribute.cs
- StrongTypingException.cs
- BackStopAuthenticationModule.cs
- SelectionUIService.cs
- RelationshipEndCollection.cs
- MaterializeFromAtom.cs
- EmptyStringExpandableObjectConverter.cs
- ServiceThrottlingBehavior.cs
- StylusEventArgs.cs