Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewCellFormattingEventArgs.cs / 1305376 / 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
- ImageCodecInfoPrivate.cs
- DefaultMemberAttribute.cs
- MergeLocalizationDirectives.cs
- PrintDocument.cs
- XPathItem.cs
- OleDbDataAdapter.cs
- TextContainerChangeEventArgs.cs
- CapacityStreamGeometryContext.cs
- _SingleItemRequestCache.cs
- PluggableProtocol.cs
- ControlCommandSet.cs
- SqlClientFactory.cs
- WindowsImpersonationContext.cs
- RegularExpressionValidator.cs
- MatrixAnimationUsingPath.cs
- XmlILModule.cs
- CodeNamespaceImportCollection.cs
- RSAPKCS1SignatureDeformatter.cs
- JournalEntry.cs
- TreeViewCancelEvent.cs
- CompiledRegexRunnerFactory.cs
- PointCollectionValueSerializer.cs
- DataGridViewColumnStateChangedEventArgs.cs
- AssociatedControlConverter.cs
- ClassGenerator.cs
- RemoteDebugger.cs
- BCryptNative.cs
- ClientApiGenerator.cs
- ComplexObject.cs
- XmlDataProvider.cs
- KeyValueSerializer.cs
- WindowsSecurityTokenAuthenticator.cs
- ArraySortHelper.cs
- StylusDownEventArgs.cs
- TransformProviderWrapper.cs
- Content.cs
- RemoteHelper.cs
- CustomMenuItemCollection.cs
- DivideByZeroException.cs
- CodeLabeledStatement.cs
- RadioButtonList.cs
- MgmtConfigurationRecord.cs
- CodePropertyReferenceExpression.cs
- SqlRewriteScalarSubqueries.cs
- ApplicationId.cs
- IsolatedStorageFile.cs
- EtwTrackingBehaviorElement.cs
- DeviceContext2.cs
- RegexCode.cs
- metadatamappinghashervisitor.cs
- GetMemberBinder.cs
- ToolboxItem.cs
- CodeConstructor.cs
- SoapIncludeAttribute.cs
- Rotation3D.cs
- ModelTreeEnumerator.cs
- ScriptingWebServicesSectionGroup.cs
- ServiceModelSecurityTokenTypes.cs
- PointLightBase.cs
- NotificationContext.cs
- SelectedDatesCollection.cs
- HttpException.cs
- CallSiteOps.cs
- Size.cs
- BridgeDataRecord.cs
- SystemResources.cs
- BitmapEffectGroup.cs
- TemplateBamlTreeBuilder.cs
- TypeLibConverter.cs
- MenuItemAutomationPeer.cs
- SynthesizerStateChangedEventArgs.cs
- mongolianshape.cs
- RPIdentityRequirement.cs
- SqlDataSourceConfigureSelectPanel.cs
- WeakReferenceKey.cs
- DocumentScope.cs
- XmlIlTypeHelper.cs
- ProgressBarBrushConverter.cs
- WebPartsSection.cs
- XPathArrayIterator.cs
- VideoDrawing.cs
- ProviderConnectionPoint.cs
- ExecutionContext.cs
- UriTemplateTable.cs
- _ListenerRequestStream.cs
- Hashtable.cs
- ObservableCollection.cs
- Rectangle.cs
- XsdValidatingReader.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- unsafeIndexingFilterStream.cs
- VisualTransition.cs
- ServerIdentity.cs
- XmlSerializerSection.cs
- CSharpCodeProvider.cs
- WebException.cs
- RouteParametersHelper.cs
- ParallelLoopState.cs
- SerialPort.cs
- XmlSchemaException.cs