Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewCellValueEventArgs.cs / 1305376 / 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
- WebPartConnectionsCloseVerb.cs
- ScriptingJsonSerializationSection.cs
- TextServicesCompartmentEventSink.cs
- SmiGettersStream.cs
- IconHelper.cs
- NotificationContext.cs
- XsdBuildProvider.cs
- IncrementalHitTester.cs
- UInt16Storage.cs
- ConfigXmlAttribute.cs
- CacheVirtualItemsEvent.cs
- IdentitySection.cs
- SamlAttribute.cs
- ClientFormsIdentity.cs
- ConfigurationException.cs
- Color.cs
- ZipIOLocalFileHeader.cs
- Rect.cs
- _DisconnectOverlappedAsyncResult.cs
- Operators.cs
- EventProviderWriter.cs
- ItemAutomationPeer.cs
- RtfToken.cs
- DataTable.cs
- PasswordRecoveryDesigner.cs
- PersonalizableTypeEntry.cs
- ComplexType.cs
- AlternateView.cs
- _FtpDataStream.cs
- TableCellAutomationPeer.cs
- FutureFactory.cs
- AlternateView.cs
- PropertyInformation.cs
- MappingItemCollection.cs
- CompositeCollection.cs
- NavigationFailedEventArgs.cs
- DbConvert.cs
- GridViewAutomationPeer.cs
- ContainerAction.cs
- WebPartsPersonalization.cs
- Stylesheet.cs
- EmptyControlCollection.cs
- DataGridViewRowsRemovedEventArgs.cs
- TypedTableBase.cs
- CodeChecksumPragma.cs
- Rijndael.cs
- ProfileSettingsCollection.cs
- UnionCqlBlock.cs
- ReadOnlyDataSource.cs
- TreeView.cs
- TcpHostedTransportConfiguration.cs
- FileVersionInfo.cs
- FormsAuthenticationUser.cs
- DynamicDiscoveryDocument.cs
- DBSqlParserTableCollection.cs
- WindowsGrip.cs
- GetWinFXPath.cs
- DesigntimeLicenseContext.cs
- IISUnsafeMethods.cs
- OptimalBreakSession.cs
- EventProviderClassic.cs
- ImageAttributes.cs
- DelegateSerializationHolder.cs
- SerialStream.cs
- SingleResultAttribute.cs
- BitmapEffectDrawingContent.cs
- TypeName.cs
- StatusBar.cs
- FlowPosition.cs
- NumericUpDown.cs
- KeyPressEvent.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- ElementAction.cs
- NavigationProgressEventArgs.cs
- KeyBinding.cs
- WindowsFormsHostAutomationPeer.cs
- PermissionListSet.cs
- RuntimeWrappedException.cs
- SpanIndex.cs
- DataGridViewUtilities.cs
- PrivilegedConfigurationManager.cs
- DocumentPageTextView.cs
- Parameter.cs
- WebPart.cs
- CommentAction.cs
- ClientApiGenerator.cs
- HostProtectionPermission.cs
- ExpressionWriter.cs
- DataGridHeaderBorder.cs
- SoapReflectionImporter.cs
- ToolBarPanel.cs
- ListenerConfig.cs
- ButtonChrome.cs
- ButtonField.cs
- SafeFileMappingHandle.cs
- BindingWorker.cs
- TdsParserSessionPool.cs
- SqlConnectionFactory.cs
- NonClientArea.cs
- DesignerAutoFormat.cs