Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DataViewManagerListItemTypeDescriptor.cs
- SrgsGrammar.cs
- BaseResourcesBuildProvider.cs
- EntitySetRetriever.cs
- DynamicEndpoint.cs
- ScriptingWebServicesSectionGroup.cs
- EncoderParameter.cs
- ThreadPool.cs
- Walker.cs
- DesignerOptionService.cs
- BindingExpressionBase.cs
- DataService.cs
- LoginView.cs
- DocumentSchemaValidator.cs
- TwoPhaseCommit.cs
- MetadataHelper.cs
- OutputCacheEntry.cs
- HttpRequestCacheValidator.cs
- DataRecordObjectView.cs
- Pts.cs
- RuleRef.cs
- StructuralType.cs
- BulletChrome.cs
- StoreItemCollection.cs
- TrustLevelCollection.cs
- SqlMultiplexer.cs
- ButtonFieldBase.cs
- PropertyChangedEventManager.cs
- FontFamilyIdentifier.cs
- FormViewPagerRow.cs
- MetabaseReader.cs
- PerformanceCounterPermission.cs
- APCustomTypeDescriptor.cs
- TitleStyle.cs
- TdsParserSafeHandles.cs
- TypeElement.cs
- ComponentDispatcher.cs
- ZoneButton.cs
- ComponentGuaranteesAttribute.cs
- CodeCommentStatement.cs
- MutexSecurity.cs
- OdbcCommand.cs
- AutomationIdentifier.cs
- MediaElement.cs
- EventDescriptorCollection.cs
- FileLevelControlBuilderAttribute.cs
- TextBoxRenderer.cs
- RangeBaseAutomationPeer.cs
- Atom10FormatterFactory.cs
- RightsManagementEncryptedStream.cs
- DeviceContexts.cs
- SystemDiagnosticsSection.cs
- MenuItem.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- Base64Stream.cs
- UrlAuthFailedErrorFormatter.cs
- FrameDimension.cs
- CanonicalFontFamilyReference.cs
- MultiBinding.cs
- GPPOINTF.cs
- CodeAttributeArgument.cs
- DragSelectionMessageFilter.cs
- Exception.cs
- oledbconnectionstring.cs
- SendSecurityHeaderElementContainer.cs
- DelimitedListTraceListener.cs
- TripleDESCryptoServiceProvider.cs
- _ListenerAsyncResult.cs
- HeaderUtility.cs
- DesignerTransaction.cs
- ResourcesChangeInfo.cs
- DataPager.cs
- Int32AnimationBase.cs
- SingleConverter.cs
- FlowDocumentReaderAutomationPeer.cs
- TableCellAutomationPeer.cs
- ExpressionContext.cs
- PropertyItem.cs
- FolderLevelBuildProviderCollection.cs
- SqlConnection.cs
- InfoCardBaseException.cs
- RewritingProcessor.cs
- FileSystemInfo.cs
- SafeNativeMemoryHandle.cs
- ThemeConfigurationDialog.cs
- XPathBinder.cs
- StringFreezingAttribute.cs
- FacetChecker.cs
- URLString.cs
- ListControlConvertEventArgs.cs
- KeyNotFoundException.cs
- Point3DConverter.cs
- InternalConfigRoot.cs
- Application.cs
- QueryExpr.cs
- Converter.cs
- configsystem.cs
- SelectionRange.cs
- WindowsListView.cs
- MethodExpr.cs