Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewRowContextMenuStripNeededEventArgs.cs / 1 / DataGridViewRowContextMenuStripNeededEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms
{
using System;
using System.Diagnostics;
///
public class DataGridViewRowContextMenuStripNeededEventArgs : EventArgs
{
private int rowIndex;
private ContextMenuStrip contextMenuStrip;
///
public DataGridViewRowContextMenuStripNeededEventArgs(int rowIndex)
{
if (rowIndex < -1)
{
throw new ArgumentOutOfRangeException("rowIndex");
}
this.rowIndex = rowIndex;
}
internal DataGridViewRowContextMenuStripNeededEventArgs(int rowIndex, ContextMenuStrip contextMenuStrip) : this(rowIndex)
{
this.contextMenuStrip = contextMenuStrip;
}
///
public int RowIndex
{
get
{
return this.rowIndex;
}
}
///
public ContextMenuStrip ContextMenuStrip
{
get
{
return this.contextMenuStrip;
}
set
{
this.contextMenuStrip = value;
}
}
}
}
// 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.Diagnostics;
///
public class DataGridViewRowContextMenuStripNeededEventArgs : EventArgs
{
private int rowIndex;
private ContextMenuStrip contextMenuStrip;
///
public DataGridViewRowContextMenuStripNeededEventArgs(int rowIndex)
{
if (rowIndex < -1)
{
throw new ArgumentOutOfRangeException("rowIndex");
}
this.rowIndex = rowIndex;
}
internal DataGridViewRowContextMenuStripNeededEventArgs(int rowIndex, ContextMenuStrip contextMenuStrip) : this(rowIndex)
{
this.contextMenuStrip = contextMenuStrip;
}
///
public int RowIndex
{
get
{
return this.rowIndex;
}
}
///
public ContextMenuStrip ContextMenuStrip
{
get
{
return this.contextMenuStrip;
}
set
{
this.contextMenuStrip = value;
}
}
}
}
// 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
- MaterialGroup.cs
- Line.cs
- QuaternionAnimationBase.cs
- SystemUnicastIPAddressInformation.cs
- PropVariant.cs
- WithStatement.cs
- Adorner.cs
- WinInetCache.cs
- AttributeCollection.cs
- QueryOperationResponseOfT.cs
- SQLBinary.cs
- DataSourceCacheDurationConverter.cs
- ConfigurationElementProperty.cs
- __Filters.cs
- SimplePropertyEntry.cs
- ForAllOperator.cs
- WindowsBrush.cs
- GiveFeedbackEvent.cs
- DbProviderFactories.cs
- BoundPropertyEntry.cs
- InvalidateEvent.cs
- BookmarkList.cs
- Queue.cs
- RangeValueProviderWrapper.cs
- OleDbConnectionInternal.cs
- DataViewManagerListItemTypeDescriptor.cs
- References.cs
- GeometryCollection.cs
- IssuanceLicense.cs
- NonBatchDirectoryCompiler.cs
- ExtensionFile.cs
- StandardBindingOptionalReliableSessionElement.cs
- VisualStyleTypesAndProperties.cs
- Int64.cs
- SiteMapNodeItem.cs
- DynamicMethod.cs
- Serializer.cs
- OracleDataReader.cs
- XAMLParseException.cs
- DecimalStorage.cs
- TableDetailsRow.cs
- StyleModeStack.cs
- OleDbEnumerator.cs
- ColorInterpolationModeValidation.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- ItemMap.cs
- ListViewSelectEventArgs.cs
- ToolStripItemTextRenderEventArgs.cs
- SharedUtils.cs
- DocumentViewerHelper.cs
- ReliabilityContractAttribute.cs
- DoubleAnimationClockResource.cs
- UnsafeNativeMethods.cs
- EntityContainerEntitySet.cs
- TransportManager.cs
- TagNameToTypeMapper.cs
- CharEntityEncoderFallback.cs
- RowParagraph.cs
- XmlSerializerImportOptions.cs
- xsdvalidator.cs
- IisTraceWebEventProvider.cs
- HMACSHA384.cs
- FrugalMap.cs
- GeneralTransform3D.cs
- Int32EqualityComparer.cs
- DynamicILGenerator.cs
- GridViewColumnHeader.cs
- MonikerUtility.cs
- RelationshipDetailsRow.cs
- TrackingAnnotationCollection.cs
- RelationHandler.cs
- SectionUpdates.cs
- ConfigViewGenerator.cs
- ProxyWebPartManager.cs
- XmlArrayItemAttribute.cs
- Image.cs
- DateRangeEvent.cs
- CheckPair.cs
- ContractCodeDomInfo.cs
- NetCodeGroup.cs
- Property.cs
- FlowDocumentScrollViewer.cs
- CurrentTimeZone.cs
- TextBoxBase.cs
- StringBuilder.cs
- ByteAnimation.cs
- Visual.cs
- InstanceKeyNotReadyException.cs
- ExceptionRoutedEventArgs.cs
- Registry.cs
- WsatRegistrationHeader.cs
- X509Extension.cs
- WeakReference.cs
- SocketException.cs
- WebPartConnectionCollection.cs
- StringCollection.cs
- IProducerConsumerCollection.cs
- RenameRuleObjectDialog.Designer.cs
- DefaultCommandConverter.cs
- XmlIncludeAttribute.cs