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
- ObjectPersistData.cs
- DataGridViewColumnEventArgs.cs
- AnnotationStore.cs
- DependencyPropertyValueSerializer.cs
- ImmutableAssemblyCacheEntry.cs
- ServicesExceptionNotHandledEventArgs.cs
- SiteMap.cs
- DrawListViewItemEventArgs.cs
- GroupDescription.cs
- AuthorizationRuleCollection.cs
- PackageRelationship.cs
- HtmlForm.cs
- UIElementParaClient.cs
- SendMailErrorEventArgs.cs
- WebPermission.cs
- Pens.cs
- NativeMethods.cs
- EntityKeyElement.cs
- ProcessHostConfigUtils.cs
- ConnectionsZone.cs
- ExpandSegmentCollection.cs
- DbConnectionStringCommon.cs
- MetafileHeaderEmf.cs
- FixedSOMTableRow.cs
- SizeValueSerializer.cs
- BorderGapMaskConverter.cs
- WsiProfilesElementCollection.cs
- DataGridViewIntLinkedList.cs
- EventLogPermissionEntry.cs
- PropertyFilterAttribute.cs
- DataBindingCollection.cs
- SectionVisual.cs
- HwndSourceParameters.cs
- ExceptionHelpers.cs
- TdsValueSetter.cs
- DragAssistanceManager.cs
- GetMemberBinder.cs
- SoapInteropTypes.cs
- WebPartActionVerb.cs
- IssuedTokenServiceCredential.cs
- TypeUsage.cs
- LayoutEvent.cs
- DesignTimeVisibleAttribute.cs
- InternalSafeNativeMethods.cs
- MimeWriter.cs
- DeclarativeCatalogPart.cs
- MimeWriter.cs
- mactripleDES.cs
- DocumentReferenceCollection.cs
- SqlTrackingWorkflowInstance.cs
- DateTimeValueSerializerContext.cs
- ReferencedAssemblyResolver.cs
- SqlUnionizer.cs
- XamlSerializerUtil.cs
- FlowDocument.cs
- ClassData.cs
- ColumnResizeUndoUnit.cs
- AnimationException.cs
- SoapTypeAttribute.cs
- smtppermission.cs
- SrgsItemList.cs
- EntityViewGenerationAttribute.cs
- XmlSchemaProviderAttribute.cs
- SoapRpcMethodAttribute.cs
- DesignerActionPanel.cs
- ActivityBuilderHelper.cs
- TableLayoutRowStyleCollection.cs
- HelpProvider.cs
- TreeNodeEventArgs.cs
- MetadataHelper.cs
- XPathException.cs
- CompilerScope.cs
- XPathBinder.cs
- AxDesigner.cs
- returneventsaver.cs
- AccessedThroughPropertyAttribute.cs
- AppliesToBehaviorDecisionTable.cs
- SqlParameterCollection.cs
- InlinedAggregationOperator.cs
- RoutedEventHandlerInfo.cs
- SystemFonts.cs
- XmlSchemaObject.cs
- SR.cs
- securestring.cs
- ServiceOperation.cs
- ErrorTolerantObjectWriter.cs
- BitmapScalingModeValidation.cs
- PageParser.cs
- WebBaseEventKeyComparer.cs
- DataTrigger.cs
- GridViewDeleteEventArgs.cs
- TdsParameterSetter.cs
- ProtocolElement.cs
- ClientTargetSection.cs
- FacetDescriptionElement.cs
- AutoSizeComboBox.cs
- HtmlLink.cs
- AutomationPropertyInfo.cs
- WebPartEditorApplyVerb.cs
- TimeSpanConverter.cs