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
- ColorMap.cs
- _HTTPDateParse.cs
- BamlRecordWriter.cs
- HtmlToClrEventProxy.cs
- FontStretch.cs
- UpnEndpointIdentityExtension.cs
- OdbcCommandBuilder.cs
- EventBuilder.cs
- MULTI_QI.cs
- QueryReaderSettings.cs
- HtmlElementErrorEventArgs.cs
- ColumnMapVisitor.cs
- MediaSystem.cs
- CheckStoreFileValidityRequest.cs
- SystemBrushes.cs
- InternalsVisibleToAttribute.cs
- Error.cs
- OleDbCommandBuilder.cs
- FontFaceLayoutInfo.cs
- DbConvert.cs
- StringComparer.cs
- PageContentCollection.cs
- Internal.cs
- ImageEditor.cs
- CompiledQuery.cs
- ActivityBuilder.cs
- Label.cs
- FileDataSourceCache.cs
- XmlObjectSerializer.cs
- AttributeQuery.cs
- COMException.cs
- QueueNameHelper.cs
- _DomainName.cs
- LinkDescriptor.cs
- XhtmlCssHandler.cs
- WebPartsPersonalizationAuthorization.cs
- RuleSetDialog.Designer.cs
- AspNetHostingPermission.cs
- EtwTrace.cs
- CompatibleIComparer.cs
- Variant.cs
- PasswordBoxAutomationPeer.cs
- ServiceRouteHandler.cs
- TextBoxAutoCompleteSourceConverter.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ListViewCancelEventArgs.cs
- ProviderUtil.cs
- ObjectViewQueryResultData.cs
- _ConnectOverlappedAsyncResult.cs
- ProvideValueServiceProvider.cs
- DataGridViewRowHeaderCell.cs
- ApplicationException.cs
- ProcessStartInfo.cs
- SoapFormatter.cs
- coordinator.cs
- SessionPageStateSection.cs
- ActiveDocumentEvent.cs
- ContentPlaceHolderDesigner.cs
- AdornerPresentationContext.cs
- HashMembershipCondition.cs
- AttachedProperty.cs
- DocumentPageHost.cs
- BaseHashHelper.cs
- ChannelRequirements.cs
- arclist.cs
- DataGridViewLayoutData.cs
- SystemColors.cs
- XmlAnyElementAttribute.cs
- webclient.cs
- SQLSingle.cs
- FlowPosition.cs
- RegexWorker.cs
- ImageCollectionCodeDomSerializer.cs
- ViewCellSlot.cs
- DiagnosticTraceSource.cs
- InstanceCollisionException.cs
- Property.cs
- ObjectDataSourceEventArgs.cs
- ScriptDescriptor.cs
- SubMenuStyleCollection.cs
- SourceLocation.cs
- TextCharacters.cs
- XmlNamespaceManager.cs
- ElementsClipboardData.cs
- ActiveDesignSurfaceEvent.cs
- CellConstant.cs
- DbConnectionClosed.cs
- PenThreadWorker.cs
- HostedHttpTransportManager.cs
- AjaxFrameworkAssemblyAttribute.cs
- MaterialGroup.cs
- ECDiffieHellmanCngPublicKey.cs
- AdRotator.cs
- SystemIPGlobalProperties.cs
- PrintingPermission.cs
- SimpleTypeResolver.cs
- NetMsmqSecurityMode.cs
- Completion.cs
- SignatureResourcePool.cs
- UnsafeNativeMethods.cs