Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewCellMouseEventArgs.cs / 1 / DataGridViewCellMouseEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms
{
using System;
using System.ComponentModel;
///
///
/// [To be supplied.]
///
public class DataGridViewCellMouseEventArgs : MouseEventArgs
{
private int rowIndex, columnIndex;
///
public DataGridViewCellMouseEventArgs(int columnIndex,
int rowIndex,
int localX,
int localY,
MouseEventArgs e) : base(e.Button, e.Clicks, localX, localY, e.Delta)
{
if (columnIndex < -1)
{
throw new ArgumentOutOfRangeException("columnIndex");
}
if (rowIndex < -1)
{
throw new ArgumentOutOfRangeException("rowIndex");
}
this.columnIndex = columnIndex;
this.rowIndex = rowIndex;
}
///
public int ColumnIndex
{
get
{
return this.columnIndex;
}
}
///
public int RowIndex
{
get
{
return this.rowIndex;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms
{
using System;
using System.ComponentModel;
///
///
/// [To be supplied.]
///
public class DataGridViewCellMouseEventArgs : MouseEventArgs
{
private int rowIndex, columnIndex;
///
public DataGridViewCellMouseEventArgs(int columnIndex,
int rowIndex,
int localX,
int localY,
MouseEventArgs e) : base(e.Button, e.Clicks, localX, localY, e.Delta)
{
if (columnIndex < -1)
{
throw new ArgumentOutOfRangeException("columnIndex");
}
if (rowIndex < -1)
{
throw new ArgumentOutOfRangeException("rowIndex");
}
this.columnIndex = columnIndex;
this.rowIndex = rowIndex;
}
///
public int ColumnIndex
{
get
{
return this.columnIndex;
}
}
///
public int RowIndex
{
get
{
return this.rowIndex;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RectIndependentAnimationStorage.cs
- Base64Encoder.cs
- CodeFieldReferenceExpression.cs
- ResourceExpressionBuilder.cs
- WebPart.cs
- InstancePersistenceContext.cs
- ScaleTransform3D.cs
- AnimationClock.cs
- ContentDesigner.cs
- embossbitmapeffect.cs
- AnimationClockResource.cs
- TreeNodeCollection.cs
- ButtonBase.cs
- RowUpdatingEventArgs.cs
- GACMembershipCondition.cs
- translator.cs
- WebSysDefaultValueAttribute.cs
- MenuCommandService.cs
- AutoScrollExpandMessageFilter.cs
- XmlSchemaSimpleContentRestriction.cs
- StoreConnection.cs
- WebPermission.cs
- SparseMemoryStream.cs
- TextElementAutomationPeer.cs
- SoapFaultCodes.cs
- UdpDiscoveryEndpoint.cs
- SortKey.cs
- ConnectionPoint.cs
- ModulesEntry.cs
- AbsoluteQuery.cs
- Error.cs
- TdsParserStateObject.cs
- FixedDocument.cs
- Confirm.cs
- ElapsedEventArgs.cs
- EditorZone.cs
- SecurityResources.cs
- ValueTypeFixupInfo.cs
- LinqDataSourceHelper.cs
- RegexBoyerMoore.cs
- BamlLocalizableResource.cs
- DataGridColumnCollection.cs
- XmlBinaryReader.cs
- Attachment.cs
- HttpPostLocalhostServerProtocol.cs
- UrlAuthFailedErrorFormatter.cs
- WebServiceTypeData.cs
- Function.cs
- SecurityPermission.cs
- HtmlUtf8RawTextWriter.cs
- PartialCachingAttribute.cs
- LinqDataSourceDisposeEventArgs.cs
- UnionExpr.cs
- TraversalRequest.cs
- HttpServerChannel.cs
- Part.cs
- Section.cs
- SqlDelegatedTransaction.cs
- XmlDeclaration.cs
- FormatPage.cs
- ManipulationLogic.cs
- PagePropertiesChangingEventArgs.cs
- ServiceEndpointCollection.cs
- ExpressionWriter.cs
- InvalidEnumArgumentException.cs
- WindowsListViewGroupHelper.cs
- DataGridHeaderBorder.cs
- VariableQuery.cs
- DiscoveryClientProtocol.cs
- ConfigurationStrings.cs
- XmlAnyElementAttribute.cs
- ControlUtil.cs
- SqlClientWrapperSmiStreamChars.cs
- StreamWriter.cs
- SoapHeaders.cs
- DesignSurface.cs
- MeshGeometry3D.cs
- ToolBarButton.cs
- TextBoxAutomationPeer.cs
- StylusCollection.cs
- ProfileSettings.cs
- DoubleStorage.cs
- ContentPlaceHolder.cs
- MsmqTransportSecurityElement.cs
- HtmlButton.cs
- OleDbPropertySetGuid.cs
- NullEntityWrapper.cs
- OdbcInfoMessageEvent.cs
- GenericUriParser.cs
- VarRefManager.cs
- EventLogSession.cs
- XmlMembersMapping.cs
- ChainOfDependencies.cs
- Transform3DGroup.cs
- CodeGroup.cs
- TreeNodeCollection.cs
- CodeCastExpression.cs
- FileUtil.cs
- XamlLoadErrorInfo.cs
- XPathConvert.cs