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
- LayoutEvent.cs
- AxisAngleRotation3D.cs
- HttpHandlerAction.cs
- DtrList.cs
- _SSPISessionCache.cs
- ISSmlParser.cs
- SoapAttributeOverrides.cs
- XPathNodeInfoAtom.cs
- BuildProviderAppliesToAttribute.cs
- TransportSecurityHelpers.cs
- QueryOutputWriter.cs
- SystemUdpStatistics.cs
- hresults.cs
- OdbcTransaction.cs
- XmlAggregates.cs
- PropertyPathWorker.cs
- Condition.cs
- latinshape.cs
- Int32CAMarshaler.cs
- ComponentChangingEvent.cs
- GuidelineCollection.cs
- Keywords.cs
- HeaderedItemsControl.cs
- ThumbButtonInfo.cs
- Graph.cs
- GlobalizationSection.cs
- WebPartDisplayMode.cs
- SequenceFullException.cs
- X509SecurityToken.cs
- DependencySource.cs
- StateDesigner.CommentLayoutGlyph.cs
- ParameterBuilder.cs
- AppDomainManager.cs
- DataGridDesigner.cs
- PngBitmapDecoder.cs
- ControlEvent.cs
- DecimalAnimationBase.cs
- WinFormsSecurity.cs
- TableParaClient.cs
- StrokeCollectionDefaultValueFactory.cs
- CfgParser.cs
- ModelUIElement3D.cs
- ValuePattern.cs
- LinqDataSourceInsertEventArgs.cs
- WebPartCatalogCloseVerb.cs
- xml.cs
- UrlAuthorizationModule.cs
- ISO2022Encoding.cs
- VectorValueSerializer.cs
- WebPartCollection.cs
- TraceLevelHelper.cs
- ProcessModuleCollection.cs
- SecurityKeyIdentifierClause.cs
- TableStyle.cs
- HttpDictionary.cs
- TargetControlTypeCache.cs
- ContextMenuStrip.cs
- BindingValueChangedEventArgs.cs
- TemplateKeyConverter.cs
- XmlElementAttributes.cs
- SrgsItemList.cs
- RbTree.cs
- CqlLexer.cs
- EntityDataSourceReferenceGroup.cs
- ItemTypeToolStripMenuItem.cs
- StackBuilderSink.cs
- SingleSelectRootGridEntry.cs
- PriorityBindingExpression.cs
- ScopelessEnumAttribute.cs
- DataSourceSelectArguments.cs
- TriggerAction.cs
- CodeNamespaceImportCollection.cs
- IfAction.cs
- Transform.cs
- SimpleHandlerBuildProvider.cs
- PopOutPanel.cs
- AppDomain.cs
- ComplexLine.cs
- Hyperlink.cs
- ClassicBorderDecorator.cs
- PiiTraceSource.cs
- UnknownBitmapEncoder.cs
- TrackingServices.cs
- DbReferenceCollection.cs
- DataObject.cs
- HelpInfo.cs
- AvTrace.cs
- TypedTableBase.cs
- MaskInputRejectedEventArgs.cs
- RegistrySecurity.cs
- DataColumnChangeEvent.cs
- FieldToken.cs
- DataBoundControlAdapter.cs
- CallContext.cs
- ControlPaint.cs
- KeyValueConfigurationCollection.cs
- HtmlImage.cs
- MobileControlsSectionHandler.cs
- SoapSchemaMember.cs
- DelegatingHeader.cs