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 / DataGridViewCellFormattingEventArgs.cs / 1 / DataGridViewCellFormattingEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; using System.Drawing; using System.ComponentModel; ///public class DataGridViewCellFormattingEventArgs : ConvertEventArgs { private int columnIndex, rowIndex; private DataGridViewCellStyle cellStyle; private bool formattingApplied; /// public DataGridViewCellFormattingEventArgs(int columnIndex, int rowIndex, object value, Type desiredType, DataGridViewCellStyle cellStyle) : base(value, desiredType) { if (columnIndex < -1) { throw new ArgumentOutOfRangeException("columnIndex"); } if (rowIndex < -1) { throw new ArgumentOutOfRangeException("rowIndex"); } this.columnIndex = columnIndex; this.rowIndex = rowIndex; this.cellStyle = cellStyle; } /// public DataGridViewCellStyle CellStyle { get { return this.cellStyle; } set { this.cellStyle = value; } } /// public int ColumnIndex { get { return this.columnIndex; } } /// public bool FormattingApplied { get { return this.formattingApplied; } set { this.formattingApplied = value; } } /// public int RowIndex { get { return this.rowIndex; } } } } // 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.Drawing; using System.ComponentModel; ///public class DataGridViewCellFormattingEventArgs : ConvertEventArgs { private int columnIndex, rowIndex; private DataGridViewCellStyle cellStyle; private bool formattingApplied; /// public DataGridViewCellFormattingEventArgs(int columnIndex, int rowIndex, object value, Type desiredType, DataGridViewCellStyle cellStyle) : base(value, desiredType) { if (columnIndex < -1) { throw new ArgumentOutOfRangeException("columnIndex"); } if (rowIndex < -1) { throw new ArgumentOutOfRangeException("rowIndex"); } this.columnIndex = columnIndex; this.rowIndex = rowIndex; this.cellStyle = cellStyle; } /// public DataGridViewCellStyle CellStyle { get { return this.cellStyle; } set { this.cellStyle = value; } } /// public int ColumnIndex { get { return this.columnIndex; } } /// public bool FormattingApplied { get { return this.formattingApplied; } set { this.formattingApplied = value; } } /// public int RowIndex { get { return this.rowIndex; } } } } // 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
- TagPrefixAttribute.cs
- EntityContainer.cs
- PackageRelationship.cs
- TraceHandler.cs
- smtpconnection.cs
- TextTreeRootTextBlock.cs
- FrameAutomationPeer.cs
- ValidatingCollection.cs
- ProtocolElementCollection.cs
- ACL.cs
- SupportingTokenChannel.cs
- TimeIntervalCollection.cs
- ChannelManager.cs
- DirectoryInfo.cs
- XmlMapping.cs
- CodeDesigner.cs
- HashJoinQueryOperatorEnumerator.cs
- Attributes.cs
- StrongNameIdentityPermission.cs
- ResourceDisplayNameAttribute.cs
- GridViewDeletedEventArgs.cs
- BlurBitmapEffect.cs
- XmlImplementation.cs
- FrameworkElementAutomationPeer.cs
- COAUTHIDENTITY.cs
- XmlJsonReader.cs
- TreeView.cs
- PolicyLevel.cs
- XmlSecureResolver.cs
- QueryCacheManager.cs
- LabelLiteral.cs
- ContentDisposition.cs
- SQLStringStorage.cs
- NGCSerializationManagerAsync.cs
- Rect3D.cs
- ByteConverter.cs
- TransformCollection.cs
- PlatformCulture.cs
- DataControlField.cs
- StringResourceManager.cs
- ObjRef.cs
- PropertyTab.cs
- SchemaManager.cs
- TimersDescriptionAttribute.cs
- BinaryUtilClasses.cs
- ColorConverter.cs
- WebBrowser.cs
- LocalValueEnumerator.cs
- MetafileHeader.cs
- TrackingDataItemValue.cs
- XPathPatternParser.cs
- ProtectedConfigurationSection.cs
- ContentPathSegment.cs
- BuildResult.cs
- Pointer.cs
- DependentList.cs
- NetworkInterface.cs
- DtdParser.cs
- InkCanvasSelection.cs
- ImageFormatConverter.cs
- MulticastDelegate.cs
- RepeatButton.cs
- DataGridViewRowsAddedEventArgs.cs
- RealProxy.cs
- DomNameTable.cs
- XmlSequenceWriter.cs
- BasicCommandTreeVisitor.cs
- XmlNullResolver.cs
- FixedDocumentSequencePaginator.cs
- ProgressBarAutomationPeer.cs
- TableDetailsCollection.cs
- TableCellAutomationPeer.cs
- RichTextBoxContextMenu.cs
- Normalization.cs
- JsonXmlDataContract.cs
- DataObjectPastingEventArgs.cs
- Assert.cs
- WCFBuildProvider.cs
- XmlSerializationGeneratedCode.cs
- SessionEndingCancelEventArgs.cs
- ContractComponent.cs
- PixelFormat.cs
- HeaderedContentControl.cs
- NullableBoolConverter.cs
- mediaclock.cs
- LambdaCompiler.Lambda.cs
- ContextProperty.cs
- DrawingServices.cs
- XmlSchemaGroup.cs
- AuthorizationPolicyTypeElement.cs
- ObjectList.cs
- WebBrowserDocumentCompletedEventHandler.cs
- DBPropSet.cs
- Monitor.cs
- AccessedThroughPropertyAttribute.cs
- BitConverter.cs
- XamlTypeMapper.cs
- LoginView.cs
- RtfToXamlLexer.cs
- IMembershipProvider.cs