Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ClientData.cs
- LinearGradientBrush.cs
- ScrollProviderWrapper.cs
- DynamicMethod.cs
- BaseDataListPage.cs
- SmiGettersStream.cs
- XamlTypeMapper.cs
- ArcSegment.cs
- InteropExecutor.cs
- cookiecontainer.cs
- TextElement.cs
- serverconfig.cs
- IRCollection.cs
- StreamHelper.cs
- TextDpi.cs
- RichTextBoxDesigner.cs
- MimeObjectFactory.cs
- SqlDelegatedTransaction.cs
- TabletDeviceInfo.cs
- SerializationHelper.cs
- GatewayDefinition.cs
- HttpRuntimeSection.cs
- UrlMapping.cs
- ObjectDisposedException.cs
- HttpRequestMessageProperty.cs
- DateTimeFormat.cs
- MatrixCamera.cs
- HostedImpersonationContext.cs
- ToolStripSplitButton.cs
- SpeechSeg.cs
- CompilationUtil.cs
- ItemsControlAutomationPeer.cs
- MailAddress.cs
- ADRoleFactory.cs
- RotateTransform3D.cs
- BindStream.cs
- XomlDesignerLoader.cs
- HtmlInputButton.cs
- DbParameterCollection.cs
- TaiwanCalendar.cs
- InvalidEnumArgumentException.cs
- SecurityElementBase.cs
- MatchingStyle.cs
- XmlSchemaAny.cs
- ComEventsHelper.cs
- SmtpReplyReaderFactory.cs
- Ipv6Element.cs
- OdbcParameterCollection.cs
- TcpTransportManager.cs
- JumpPath.cs
- OwnerDrawPropertyBag.cs
- TreeView.cs
- OnOperation.cs
- SqlProcedureAttribute.cs
- SqlTransaction.cs
- TreeWalkHelper.cs
- TypeNameConverter.cs
- OleDbConnectionInternal.cs
- XamlVector3DCollectionSerializer.cs
- ZoneMembershipCondition.cs
- ObjectAnimationBase.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ByteAnimationUsingKeyFrames.cs
- _ConnectionGroup.cs
- ZipIOModeEnforcingStream.cs
- TagNameToTypeMapper.cs
- DLinqDataModelProvider.cs
- _ConnectStream.cs
- ProxyGenerator.cs
- AtomPub10CategoriesDocumentFormatter.cs
- FlowDocumentReader.cs
- DateBoldEvent.cs
- SigningCredentials.cs
- SymbolMethod.cs
- Propagator.cs
- SingleTagSectionHandler.cs
- MultiSelector.cs
- SqlOuterApplyReducer.cs
- BindableTemplateBuilder.cs
- MessageQueuePermissionEntry.cs
- formatter.cs
- InvalidEnumArgumentException.cs
- GridViewEditEventArgs.cs
- WindowsEditBox.cs
- SymmetricSecurityProtocol.cs
- LayoutDump.cs
- SamlAttributeStatement.cs
- ActivityPropertyReference.cs
- SQLInt16.cs
- QilLiteral.cs
- BaseValidator.cs
- GenericWebPart.cs
- SchemaObjectWriter.cs
- Journal.cs
- SHA512Managed.cs
- TypeUtil.cs
- TextChange.cs
- RectIndependentAnimationStorage.cs
- CollectionViewProxy.cs
- Int16Storage.cs