Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- WebPartHeaderCloseVerb.cs
- BrushConverter.cs
- LayoutInformation.cs
- StrokeRenderer.cs
- OracleException.cs
- ConfigXmlText.cs
- MultiSelector.cs
- safex509handles.cs
- FontResourceCache.cs
- ColorDialog.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- JoinElimination.cs
- RequestQueue.cs
- NullExtension.cs
- XmlWriter.cs
- ZoneMembershipCondition.cs
- TypedDataSetSchemaImporterExtension.cs
- RectAnimationUsingKeyFrames.cs
- RuntimeVariableList.cs
- ConfigurationPropertyCollection.cs
- SQlBooleanStorage.cs
- AssemblyNameProxy.cs
- List.cs
- GridViewItemAutomationPeer.cs
- DocumentOrderQuery.cs
- DescendantQuery.cs
- RoutedEventHandlerInfo.cs
- shaper.cs
- DragAssistanceManager.cs
- TraceSource.cs
- RowUpdatingEventArgs.cs
- PassportAuthenticationEventArgs.cs
- RemotingHelper.cs
- DependencyObjectType.cs
- MenuCommandsChangedEventArgs.cs
- RecognizerInfo.cs
- Encoder.cs
- BaseConfigurationRecord.cs
- RootBrowserWindowAutomationPeer.cs
- NetworkInformationPermission.cs
- UnsafeNativeMethods.cs
- ZipFileInfoCollection.cs
- FilterableAttribute.cs
- XmlReader.cs
- XmlCompatibilityReader.cs
- Message.cs
- TitleStyle.cs
- GlyphTypeface.cs
- FormParameter.cs
- ListViewInsertionMark.cs
- ProviderCommandInfoUtils.cs
- ObjectConverter.cs
- TextEffectResolver.cs
- ServiceModelTimeSpanValidator.cs
- DataGridSortingEventArgs.cs
- GridViewRowEventArgs.cs
- XamlToRtfWriter.cs
- Visitor.cs
- ImageAutomationPeer.cs
- XmlDocument.cs
- DisplayNameAttribute.cs
- DataViewSetting.cs
- Expression.cs
- PathSegmentCollection.cs
- IOThreadScheduler.cs
- MessageQueuePermissionEntryCollection.cs
- KeyNotFoundException.cs
- EditingCoordinator.cs
- StandardOleMarshalObject.cs
- ProgramNode.cs
- ScriptReferenceEventArgs.cs
- ZipIOLocalFileDataDescriptor.cs
- SrgsDocument.cs
- TypographyProperties.cs
- FloaterParaClient.cs
- Zone.cs
- SystemException.cs
- ButtonBaseAutomationPeer.cs
- Grammar.cs
- TextDataBindingHandler.cs
- Form.cs
- AccessibilityHelperForXpWin2k3.cs
- KnownAssembliesSet.cs
- AssemblyResourceLoader.cs
- AutoGeneratedField.cs
- ConstraintStruct.cs
- IpcClientChannel.cs
- Statements.cs
- ToolStripItemRenderEventArgs.cs
- MenuAutoFormat.cs
- HttpStreamMessage.cs
- RTLAwareMessageBox.cs
- SortExpressionBuilder.cs
- ControlIdConverter.cs
- AdjustableArrowCap.cs
- UnmanagedMemoryStreamWrapper.cs
- DataListItem.cs
- CommonDialog.cs
- UnicastIPAddressInformationCollection.cs
- SkinBuilder.cs