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
- UxThemeWrapper.cs
- SoapMessage.cs
- DesignerSerializationManager.cs
- HttpDebugHandler.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TypeDependencyAttribute.cs
- RuntimeWrappedException.cs
- CodeBinaryOperatorExpression.cs
- SqlDependencyUtils.cs
- TdsParserStaticMethods.cs
- PanelStyle.cs
- QilGenerator.cs
- DataGridViewCellStyleChangedEventArgs.cs
- MenuItemCollection.cs
- DBDataPermission.cs
- ExplicitDiscriminatorMap.cs
- CopyNodeSetAction.cs
- SecurityCapabilities.cs
- PostBackTrigger.cs
- SqlRowUpdatingEvent.cs
- HMACSHA512.cs
- SafeFileMappingHandle.cs
- ColorConvertedBitmapExtension.cs
- PageAsyncTask.cs
- System.Data_BID.cs
- RandomDelayQueuedSendsAsyncResult.cs
- ReturnType.cs
- Brush.cs
- ErrorWebPart.cs
- InkPresenterAutomationPeer.cs
- WebConvert.cs
- LoginName.cs
- MethodBuilder.cs
- AncestorChangedEventArgs.cs
- ServiceDurableInstanceContextProvider.cs
- ManagementException.cs
- DataSysAttribute.cs
- GenericsInstances.cs
- AstTree.cs
- regiisutil.cs
- SqlMethodTransformer.cs
- XmlSchemaValidationException.cs
- sortedlist.cs
- HtmlInputImage.cs
- RsaSecurityTokenParameters.cs
- SQLInt32Storage.cs
- WaitHandleCannotBeOpenedException.cs
- StringDictionaryCodeDomSerializer.cs
- ConfigurationFileMap.cs
- TextCollapsingProperties.cs
- Function.cs
- CodeIdentifiers.cs
- WSFederationHttpBindingElement.cs
- CustomError.cs
- StatusStrip.cs
- EditorPartCollection.cs
- IntSecurity.cs
- HttpRuntime.cs
- RtfFormatStack.cs
- RuleSetDialog.Designer.cs
- PaintEvent.cs
- WindowCollection.cs
- ConfigurationManagerInternal.cs
- MultiTouchSystemGestureLogic.cs
- MetadataHelper.cs
- BitmapEffect.cs
- TextPattern.cs
- XmlSchema.cs
- AnnotationResourceCollection.cs
- CustomAssemblyResolver.cs
- DataGridTextColumn.cs
- DbXmlEnabledProviderManifest.cs
- Confirm.cs
- ParseChildrenAsPropertiesAttribute.cs
- NullableFloatSumAggregationOperator.cs
- cookie.cs
- ChameleonKey.cs
- XmlHelper.cs
- DataGridViewLayoutData.cs
- ExclusiveTcpListener.cs
- MembershipUser.cs
- MatrixTransform3D.cs
- CalendarDay.cs
- RemoteWebConfigurationHostStream.cs
- ListViewTableCell.cs
- HttpContextWrapper.cs
- ListView.cs
- WbmpConverter.cs
- StylusTip.cs
- NativeMethods.cs
- AutomationElementCollection.cs
- AutoGeneratedFieldProperties.cs
- X509SecurityTokenParameters.cs
- SingleConverter.cs
- RankException.cs
- TransportConfigurationTypeElement.cs
- HwndKeyboardInputProvider.cs
- FlowLayoutPanel.cs
- BaseDataList.cs
- XmlDeclaration.cs