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
- XmlWrappingReader.cs
- Maps.cs
- ReferenceTypeElement.cs
- ArrayEditor.cs
- ReferenceEqualityComparer.cs
- SoapSchemaExporter.cs
- RequestQueryProcessor.cs
- X509UI.cs
- EmbossBitmapEffect.cs
- View.cs
- EvidenceBase.cs
- TrackingRecord.cs
- ScalarConstant.cs
- DocumentXPathNavigator.cs
- oledbconnectionstring.cs
- VisualTreeUtils.cs
- XsltCompileContext.cs
- BindUriHelper.cs
- DoubleCollectionConverter.cs
- TextTreeText.cs
- ManagedFilter.cs
- fixedPageContentExtractor.cs
- HttpPostClientProtocol.cs
- WmlCalendarAdapter.cs
- HWStack.cs
- Compiler.cs
- ArraySortHelper.cs
- DependentTransaction.cs
- ValueUnavailableException.cs
- BindingMemberInfo.cs
- ChangeProcessor.cs
- DetailsViewActionList.cs
- EntityDescriptor.cs
- FunctionOverloadResolver.cs
- BasicBrowserDialog.designer.cs
- DataGridViewUtilities.cs
- EntityContainer.cs
- NativeMethods.cs
- Matrix3DValueSerializer.cs
- DataMemberAttribute.cs
- SafeSerializationManager.cs
- SafeCoTaskMem.cs
- PenThread.cs
- HtmlInputSubmit.cs
- ProvidePropertyAttribute.cs
- CaseInsensitiveHashCodeProvider.cs
- CellPartitioner.cs
- BufferedStream.cs
- HttpCapabilitiesSectionHandler.cs
- InvalidPropValue.cs
- DXD.cs
- LinqDataSourceInsertEventArgs.cs
- InstrumentationTracker.cs
- DefaultParameterValueAttribute.cs
- MatrixConverter.cs
- AnonymousIdentificationSection.cs
- FontStyle.cs
- ThemeDirectoryCompiler.cs
- XmlSchemaNotation.cs
- PlainXmlDeserializer.cs
- CollectionType.cs
- DependencyProperty.cs
- UidManager.cs
- WMIGenerator.cs
- PenThread.cs
- ScalarOps.cs
- ThemeDictionaryExtension.cs
- SamlAuthenticationClaimResource.cs
- ObjectDataSource.cs
- ResourceAssociationSet.cs
- DetailsViewModeEventArgs.cs
- ThicknessAnimationBase.cs
- Mapping.cs
- ToolStripItemImageRenderEventArgs.cs
- IndentedWriter.cs
- AutoScrollExpandMessageFilter.cs
- PeerIPHelper.cs
- RSAOAEPKeyExchangeFormatter.cs
- OLEDB_Util.cs
- MetadataStore.cs
- WsdlInspector.cs
- PersonalizationState.cs
- Padding.cs
- UnmanagedMemoryStreamWrapper.cs
- UTF32Encoding.cs
- WinInetCache.cs
- SwitchLevelAttribute.cs
- XmlSchemaValidationException.cs
- TreeBuilder.cs
- HtmlInputControl.cs
- JsonEnumDataContract.cs
- User.cs
- XmlUrlResolver.cs
- TokenBasedSetEnumerator.cs
- UseLicense.cs
- LambdaCompiler.Unary.cs
- PropertyValueEditor.cs
- RijndaelCryptoServiceProvider.cs
- SymbolTable.cs
- ProtocolReflector.cs