Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewCellMouseEventArgs.cs / 1305376 / 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
- Polyline.cs
- TemplateControl.cs
- SafeTimerHandle.cs
- ContextMenuService.cs
- CustomAssemblyResolver.cs
- WSFederationHttpBindingCollectionElement.cs
- AdornerDecorator.cs
- ClientRequest.cs
- QualificationDataItem.cs
- OdbcConnectionStringbuilder.cs
- SaveFileDialog.cs
- SizeAnimationClockResource.cs
- RemotingConfiguration.cs
- PasswordBoxAutomationPeer.cs
- ListViewCancelEventArgs.cs
- HtmlSelectionListAdapter.cs
- CombinedHttpChannel.cs
- DataSourceControl.cs
- KnownTypesProvider.cs
- ConstNode.cs
- JsonCollectionDataContract.cs
- RewritingSimplifier.cs
- ClonableStack.cs
- CompileXomlTask.cs
- LineProperties.cs
- ScaleTransform.cs
- CardSpacePolicyElement.cs
- RbTree.cs
- KeyPullup.cs
- EditorZone.cs
- _MultipleConnectAsync.cs
- MobileRedirect.cs
- Canvas.cs
- Compiler.cs
- SoapTypeAttribute.cs
- SmiEventSink_Default.cs
- ChannelEndpointElementCollection.cs
- XmlSignatureProperties.cs
- XmlNodeList.cs
- XamlFxTrace.cs
- TableRowsCollectionEditor.cs
- Codec.cs
- CollectionType.cs
- XmlUtil.cs
- RewritingSimplifier.cs
- WebAdminConfigurationHelper.cs
- ObjectListCommandsPage.cs
- SpellerInterop.cs
- HttpValueCollection.cs
- DictionaryMarkupSerializer.cs
- ContentElement.cs
- DispatchChannelSink.cs
- PageSetupDialog.cs
- ConfigXmlAttribute.cs
- BinaryUtilClasses.cs
- ProgressBar.cs
- OleDbInfoMessageEvent.cs
- AffineTransform3D.cs
- ProgressBarRenderer.cs
- WarningException.cs
- UriPrefixTable.cs
- webclient.cs
- PropertyStore.cs
- PermissionListSet.cs
- StylusPlugin.cs
- TagMapCollection.cs
- ItemMap.cs
- MsmqIntegrationSecurityMode.cs
- TransformationRules.cs
- CheckBoxPopupAdapter.cs
- XmlDataDocument.cs
- SelectorAutomationPeer.cs
- CursorConverter.cs
- WebConvert.cs
- PathNode.cs
- SafeFileMappingHandle.cs
- WebPartConnectionsCloseVerb.cs
- BitmapEffectState.cs
- LinkLabel.cs
- HybridObjectCache.cs
- ComboBoxAutomationPeer.cs
- IgnoreDeviceFilterElementCollection.cs
- ListenerElementsCollection.cs
- InvokeWebService.cs
- TextEditorDragDrop.cs
- SafeNativeMethods.cs
- ImportContext.cs
- SettingsAttributeDictionary.cs
- MouseWheelEventArgs.cs
- AutomationPatternInfo.cs
- SolidColorBrush.cs
- Rect3D.cs
- DbReferenceCollection.cs
- WmpBitmapEncoder.cs
- JsonQueryStringConverter.cs
- ListControl.cs
- localization.cs
- Nodes.cs
- listviewsubitemcollectioneditor.cs
- MarginCollapsingState.cs