Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DbBuffer.cs
- ExpressionBuilderCollection.cs
- Camera.cs
- FontStyleConverter.cs
- OAVariantLib.cs
- SchemaTypeEmitter.cs
- FamilyMapCollection.cs
- BaseCAMarshaler.cs
- ZipIOExtraFieldPaddingElement.cs
- WebPartTransformerCollection.cs
- DataRowView.cs
- ListViewGroupConverter.cs
- StaticSiteMapProvider.cs
- ThumbAutomationPeer.cs
- MembershipUser.cs
- sitestring.cs
- PeerDefaultCustomResolverClient.cs
- TimersDescriptionAttribute.cs
- IpcChannel.cs
- IEnumerable.cs
- SystemDiagnosticsSection.cs
- ErrorEventArgs.cs
- SelectionProviderWrapper.cs
- KeyMatchBuilder.cs
- TextDecorationCollection.cs
- WorkflowItemPresenter.cs
- DesignerCommandAdapter.cs
- DecimalConverter.cs
- Zone.cs
- LedgerEntry.cs
- UserControlParser.cs
- VisualStyleInformation.cs
- WinInet.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- IntSecurity.cs
- WorkerRequest.cs
- HierarchicalDataSourceControl.cs
- ImmComposition.cs
- X500Name.cs
- TimeStampChecker.cs
- InfoCardTraceRecord.cs
- SelectionChangedEventArgs.cs
- NullRuntimeConfig.cs
- Comparer.cs
- TreeIterator.cs
- SimpleColumnProvider.cs
- CompilerGeneratedAttribute.cs
- PolicyException.cs
- XmlAnyAttributeAttribute.cs
- ApplicationDirectoryMembershipCondition.cs
- NavigationWindow.cs
- QueryStringHandler.cs
- TextDecorationLocationValidation.cs
- CalendarBlackoutDatesCollection.cs
- CodeAccessPermission.cs
- TargetParameterCountException.cs
- InkSerializer.cs
- ApplicationInterop.cs
- InputLanguageCollection.cs
- TagPrefixAttribute.cs
- DynamicDocumentPaginator.cs
- DataRowView.cs
- OrthographicCamera.cs
- HotSpot.cs
- DynamicILGenerator.cs
- MergeFilterQuery.cs
- ColorConverter.cs
- MissingMethodException.cs
- SqlEnums.cs
- PassportPrincipal.cs
- SmiEventSink_Default.cs
- HitTestDrawingContextWalker.cs
- IncomingWebResponseContext.cs
- TrackBarRenderer.cs
- CompositeActivityDesigner.cs
- TransactionManager.cs
- XmlAnyElementAttributes.cs
- ToolZoneDesigner.cs
- SystemException.cs
- Subtract.cs
- InputBinding.cs
- ValueHandle.cs
- NamespaceListProperty.cs
- KeyConstraint.cs
- InstalledVoice.cs
- StateWorkerRequest.cs
- RoleExceptions.cs
- CommunicationObject.cs
- UnsafeNativeMethodsPenimc.cs
- ExpressionParser.cs
- HtmlTextArea.cs
- Rectangle.cs
- NegotiateStream.cs
- ZipIOExtraFieldPaddingElement.cs
- StreamInfo.cs
- ItemCheckedEvent.cs
- PriorityBindingExpression.cs
- OleDbDataAdapter.cs
- connectionpool.cs
- XPathNodeInfoAtom.cs