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
- XmlChildEnumerator.cs
- InvalidPropValue.cs
- NetMsmqSecurity.cs
- SqlSelectStatement.cs
- Size.cs
- Point4D.cs
- HtmlTable.cs
- CommandSet.cs
- RenderTargetBitmap.cs
- URLAttribute.cs
- CompilerResults.cs
- HtmlInputControl.cs
- BitmapEffect.cs
- OleDbErrorCollection.cs
- FillErrorEventArgs.cs
- processwaithandle.cs
- Walker.cs
- TextPattern.cs
- SqlFacetAttribute.cs
- WebInvokeAttribute.cs
- IsolatedStorageFile.cs
- XmlCountingReader.cs
- XmlBaseWriter.cs
- XmlName.cs
- Inflater.cs
- DBSqlParser.cs
- PerformanceCounterCategory.cs
- ContainerFilterService.cs
- XmlEventCache.cs
- OperatingSystem.cs
- TextAdaptor.cs
- Package.cs
- DateTimeConverter.cs
- DataSourceXmlClassAttribute.cs
- MailAddress.cs
- PersonalizationDictionary.cs
- QueryInterceptorAttribute.cs
- MetaData.cs
- ListItemCollection.cs
- ConfigurationSchemaErrors.cs
- WeakHashtable.cs
- RSAPKCS1SignatureDeformatter.cs
- ClaimSet.cs
- CheckBoxList.cs
- TextParaClient.cs
- ApplicationServicesHostFactory.cs
- DataSourceXmlClassAttribute.cs
- CodeGroup.cs
- SqlTriggerAttribute.cs
- ToolboxBitmapAttribute.cs
- ImpersonationContext.cs
- AttributeAction.cs
- ObjectListItem.cs
- XNameConverter.cs
- GetPageCompletedEventArgs.cs
- ConnectionInterfaceCollection.cs
- ByeMessage11.cs
- MailSettingsSection.cs
- XsdCachingReader.cs
- SerializationSectionGroup.cs
- CodeVariableReferenceExpression.cs
- DesignerHelpers.cs
- Condition.cs
- SerialStream.cs
- AvTrace.cs
- XPathArrayIterator.cs
- ServiceNotStartedException.cs
- base64Transforms.cs
- AQNBuilder.cs
- DataSvcMapFile.cs
- DataControlFieldTypeEditor.cs
- ToolStripHighContrastRenderer.cs
- SessionStateSection.cs
- Label.cs
- ADMembershipProvider.cs
- WmpBitmapEncoder.cs
- HtmlInputImage.cs
- SynchronizationFilter.cs
- Dictionary.cs
- CompressEmulationStream.cs
- DragStartedEventArgs.cs
- DXD.cs
- NativeDirectoryServicesQueryAPIs.cs
- RouteItem.cs
- XsltException.cs
- ManagementPath.cs
- ApplicationId.cs
- QuaternionConverter.cs
- SecurityManager.cs
- _SslSessionsCache.cs
- SqlParameterCollection.cs
- OnOperation.cs
- FileSystemInfo.cs
- MsmqInputChannelListener.cs
- MetadataArtifactLoaderCompositeFile.cs
- HighlightComponent.cs
- HostVisual.cs
- Frame.cs
- Span.cs
- PermissionSet.cs