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 / DataGridViewCellValueEventArgs.cs / 1 / DataGridViewCellValueEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; using System.Diagnostics; ///public class DataGridViewCellValueEventArgs : EventArgs { private int rowIndex, columnIndex; private object val; internal DataGridViewCellValueEventArgs() { this.columnIndex = this.rowIndex = -1; } /// public DataGridViewCellValueEventArgs(int columnIndex, int rowIndex) { if (columnIndex < 0) { throw new ArgumentOutOfRangeException("columnIndex"); } if (rowIndex < 0) { throw new ArgumentOutOfRangeException("rowIndex"); } this.rowIndex = rowIndex; this.columnIndex = columnIndex; } /// public int ColumnIndex { get { return this.columnIndex; } } /// public int RowIndex { get { return this.rowIndex; } } /// public object Value { get { return this.val; } set { this.val = value; } } internal void SetProperties(int columnIndex, int rowIndex, object value) { Debug.Assert(columnIndex >= -1); Debug.Assert(rowIndex >= -1); this.columnIndex = columnIndex; this.rowIndex = rowIndex; this.val = 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 DataGridViewCellValueEventArgs : EventArgs { private int rowIndex, columnIndex; private object val; internal DataGridViewCellValueEventArgs() { this.columnIndex = this.rowIndex = -1; } /// public DataGridViewCellValueEventArgs(int columnIndex, int rowIndex) { if (columnIndex < 0) { throw new ArgumentOutOfRangeException("columnIndex"); } if (rowIndex < 0) { throw new ArgumentOutOfRangeException("rowIndex"); } this.rowIndex = rowIndex; this.columnIndex = columnIndex; } /// public int ColumnIndex { get { return this.columnIndex; } } /// public int RowIndex { get { return this.rowIndex; } } /// public object Value { get { return this.val; } set { this.val = value; } } internal void SetProperties(int columnIndex, int rowIndex, object value) { Debug.Assert(columnIndex >= -1); Debug.Assert(rowIndex >= -1); this.columnIndex = columnIndex; this.rowIndex = rowIndex; this.val = 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
- ListView.cs
- EndpointNotFoundException.cs
- FlowDocumentPageViewerAutomationPeer.cs
- MessageHeaderDescriptionCollection.cs
- _HeaderInfo.cs
- Window.cs
- PrivilegeNotHeldException.cs
- TouchesCapturedWithinProperty.cs
- StreamGeometry.cs
- ClaimSet.cs
- PerformanceCounterCategory.cs
- ToolStripPanel.cs
- ByteAnimationUsingKeyFrames.cs
- webeventbuffer.cs
- Propagator.cs
- FixedLineResult.cs
- SrgsElementList.cs
- SystemColors.cs
- ExplicitDiscriminatorMap.cs
- TextServicesContext.cs
- Table.cs
- ErrorLog.cs
- DataTemplateSelector.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- ServerType.cs
- KeyTimeConverter.cs
- ProfilePropertySettings.cs
- CompModSwitches.cs
- WebPartEventArgs.cs
- XPathPatternBuilder.cs
- ZipFileInfoCollection.cs
- ChangeNode.cs
- ExpressionVisitor.cs
- HttpException.cs
- GuidelineSet.cs
- Rotation3DAnimationBase.cs
- XmlNode.cs
- HtmlLinkAdapter.cs
- updatecommandorderer.cs
- X509SecurityTokenProvider.cs
- ObjectStateManager.cs
- SqlVisitor.cs
- RangeBase.cs
- EnumerableCollectionView.cs
- FocusChangedEventArgs.cs
- StreamWithDictionary.cs
- Panel.cs
- KernelTypeValidation.cs
- ThreadStaticAttribute.cs
- HostSecurityManager.cs
- UInt16Converter.cs
- GenericIdentity.cs
- ExpressionVisitor.cs
- RoleManagerModule.cs
- EmptyEnumerable.cs
- XPathParser.cs
- ElasticEase.cs
- ErrorActivity.cs
- DoubleAnimationUsingPath.cs
- SHA1CryptoServiceProvider.cs
- OutputCacheModule.cs
- ComplexPropertyEntry.cs
- HttpFileCollection.cs
- PropertyChangingEventArgs.cs
- NavigationHelper.cs
- WebBrowserPermission.cs
- CheckedPointers.cs
- SoapReflectionImporter.cs
- EntityDataSourceValidationException.cs
- TableLayoutRowStyleCollection.cs
- EventArgs.cs
- DependencyObject.cs
- Query.cs
- ViewGenerator.cs
- AvTrace.cs
- DbModificationClause.cs
- MexBindingElement.cs
- GridViewRowPresenterBase.cs
- ImageListStreamer.cs
- FlowLayout.cs
- XmlNullResolver.cs
- SchemaObjectWriter.cs
- OleAutBinder.cs
- TransformerInfoCollection.cs
- ProgressBar.cs
- CompressEmulationStream.cs
- DescriptionAttribute.cs
- DataGridSortCommandEventArgs.cs
- InvalidEnumArgumentException.cs
- TextTreeInsertUndoUnit.cs
- DataGridViewCellLinkedList.cs
- entityreference_tresulttype.cs
- WebFaultException.cs
- HtmlInputFile.cs
- PipeStream.cs
- TableAdapterManagerNameHandler.cs
- Int64Storage.cs
- SystemUdpStatistics.cs
- PolicyLevel.cs
- PlatformCulture.cs