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
- SemanticResultValue.cs
- EventListener.cs
- GlyphsSerializer.cs
- EventSinkHelperWriter.cs
- TemplateBindingExtension.cs
- Stacktrace.cs
- HtmlElementEventArgs.cs
- TimeSpanConverter.cs
- DataSourceExpression.cs
- XmlSchemaSimpleContentExtension.cs
- MembershipUser.cs
- ExpressionEvaluator.cs
- OutgoingWebResponseContext.cs
- SyncMethodInvoker.cs
- TemplateBaseAction.cs
- ToolBar.cs
- VisualCollection.cs
- ExpressionValueEditor.cs
- PolyBezierSegment.cs
- KeyTime.cs
- XmlTextWriter.cs
- DbMetaDataFactory.cs
- Util.cs
- ApplyImportsAction.cs
- ClassicBorderDecorator.cs
- DeviceContexts.cs
- ToggleButtonAutomationPeer.cs
- FixedDocumentSequencePaginator.cs
- SessionParameter.cs
- MobileCapabilities.cs
- OlePropertyStructs.cs
- CommandField.cs
- AssociationTypeEmitter.cs
- EllipseGeometry.cs
- DataGridViewCellConverter.cs
- OdbcEnvironmentHandle.cs
- VisualBrush.cs
- WebPartConnectionsCancelEventArgs.cs
- AvTraceDetails.cs
- Knowncolors.cs
- AuthenticationModulesSection.cs
- SQLByte.cs
- FixedSOMTableRow.cs
- RotateTransform3D.cs
- LinqDataSource.cs
- DataGridViewCellConverter.cs
- NameValueSectionHandler.cs
- UIElementParaClient.cs
- NetworkCredential.cs
- IndexOutOfRangeException.cs
- ReadOnlyNameValueCollection.cs
- HttpHandlerActionCollection.cs
- CompModSwitches.cs
- ThemeableAttribute.cs
- WebPartTransformer.cs
- returneventsaver.cs
- EnterpriseServicesHelper.cs
- PageStatePersister.cs
- NativeMethods.cs
- SettingsProperty.cs
- PermissionSet.cs
- XmlSchemaObject.cs
- WindowsUpDown.cs
- TypeKeyValue.cs
- GCHandleCookieTable.cs
- SiteMapNodeItemEventArgs.cs
- WebPartHelpVerb.cs
- UnmanagedHandle.cs
- Delegate.cs
- IndicFontClient.cs
- UserControl.cs
- ProgressPage.cs
- ApplicationServicesHostFactory.cs
- WebPartConnection.cs
- TypeInitializationException.cs
- IPEndPointCollection.cs
- DataGridViewDataConnection.cs
- SlipBehavior.cs
- GeneralTransform2DTo3DTo2D.cs
- DataException.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- DecoderFallback.cs
- SynchronizingStream.cs
- Rules.cs
- OrderByQueryOptionExpression.cs
- MetadataItemSerializer.cs
- PerformanceCounterPermissionEntryCollection.cs
- ExclusiveTcpListener.cs
- PointCollection.cs
- AxHost.cs
- File.cs
- TabRenderer.cs
- Transform.cs
- StyleBamlTreeBuilder.cs
- FtpRequestCacheValidator.cs
- DataColumnMappingCollection.cs
- IndentedTextWriter.cs
- PasswordRecovery.cs
- TransactionScope.cs
- HttpCapabilitiesBase.cs