Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TrackPoint.cs
- ValidationException.cs
- SQLInt64.cs
- GridViewRow.cs
- ColumnCollection.cs
- PageHandlerFactory.cs
- XmlSerializationReader.cs
- FileDialogCustomPlacesCollection.cs
- ITreeGenerator.cs
- DataGridItemEventArgs.cs
- KnownIds.cs
- IndexOutOfRangeException.cs
- AssemblyBuilder.cs
- RedirectionProxy.cs
- _SslSessionsCache.cs
- ServicesExceptionNotHandledEventArgs.cs
- TemplateAction.cs
- KeyEventArgs.cs
- HtmlTableRowCollection.cs
- StopStoryboard.cs
- CanonicalizationDriver.cs
- EncodingInfo.cs
- ChangePassword.cs
- CustomErrorCollection.cs
- CompositeFontInfo.cs
- ProfessionalColorTable.cs
- TimeSpanConverter.cs
- EnvelopedPkcs7.cs
- BindingSource.cs
- DateTimeValueSerializerContext.cs
- XmlNamespaceDeclarationsAttribute.cs
- TcpChannelHelper.cs
- dbenumerator.cs
- GridViewRowEventArgs.cs
- HttpException.cs
- SymLanguageVendor.cs
- PartitionResolver.cs
- COM2ExtendedUITypeEditor.cs
- CommandLibraryHelper.cs
- TextEditorContextMenu.cs
- ComplexType.cs
- AstTree.cs
- CryptoHandle.cs
- SystemResourceHost.cs
- SafeNativeMethods.cs
- HttpProxyCredentialType.cs
- PasswordDeriveBytes.cs
- SessionStateSection.cs
- CodeSnippetStatement.cs
- HotSpotCollection.cs
- MustUnderstandSoapException.cs
- MsdtcClusterUtils.cs
- AssemblyBuilder.cs
- ChtmlTextWriter.cs
- WrappedDispatcherException.cs
- IIS7WorkerRequest.cs
- DependencyPropertyKind.cs
- RsaSecurityKey.cs
- BlurEffect.cs
- AdCreatedEventArgs.cs
- ValidationHelper.cs
- NamespaceListProperty.cs
- TableRowCollection.cs
- SettingsSavedEventArgs.cs
- SQLByte.cs
- documentsequencetextcontainer.cs
- GenerateHelper.cs
- ComponentEditorPage.cs
- SchemaEntity.cs
- OperatorExpressions.cs
- TextElement.cs
- Message.cs
- PropertyFilterAttribute.cs
- SqlConnectionStringBuilder.cs
- ConstrainedGroup.cs
- RankException.cs
- remotingproxy.cs
- XmlPreloadedResolver.cs
- MsmqIntegrationBinding.cs
- XmlSecureResolver.cs
- DocumentPageHost.cs
- RoutedPropertyChangedEventArgs.cs
- RSAOAEPKeyExchangeFormatter.cs
- WorkflowNamespace.cs
- Menu.cs
- ConsoleKeyInfo.cs
- CapabilitiesUse.cs
- StringArrayConverter.cs
- SocketElement.cs
- WebSysDisplayNameAttribute.cs
- BookmarkEventArgs.cs
- BrowsableAttribute.cs
- SqlCacheDependency.cs
- ActivationServices.cs
- ProjectionCamera.cs
- HtmlElementErrorEventArgs.cs
- ObjectDataSourceView.cs
- ErrorStyle.cs
- ParserStreamGeometryContext.cs
- LogManagementAsyncResult.cs