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
- DescendantQuery.cs
- RenamedEventArgs.cs
- FrameworkReadOnlyPropertyMetadata.cs
- LocalValueEnumerator.cs
- GenericParameterDataContract.cs
- AllMembershipCondition.cs
- IsolatedStorageFilePermission.cs
- WebPartMovingEventArgs.cs
- PartitionedStream.cs
- StrokeNodeOperations2.cs
- ProjectedSlot.cs
- CryptoHelper.cs
- IconConverter.cs
- XmlSerializer.cs
- FixedNode.cs
- TableLayout.cs
- UrlPropertyAttribute.cs
- TextWriterEngine.cs
- SimpleType.cs
- NativeMethodsOther.cs
- ConfigurationElementProperty.cs
- NameValueFileSectionHandler.cs
- CodeComment.cs
- GPStream.cs
- GeneralTransform.cs
- MessagingActivityHelper.cs
- HuffmanTree.cs
- SeverityFilter.cs
- StackOverflowException.cs
- bindurihelper.cs
- HtmlUtf8RawTextWriter.cs
- InheritedPropertyChangedEventArgs.cs
- SettingsPropertyCollection.cs
- NonceCache.cs
- ParseChildrenAsPropertiesAttribute.cs
- CryptoProvider.cs
- HttpContextWrapper.cs
- PropertyNames.cs
- ValueSerializerAttribute.cs
- NativeMethods.cs
- SafeArchiveContext.cs
- ToolBarButton.cs
- NameSpaceEvent.cs
- HtmlInputSubmit.cs
- PeerCustomResolverBindingElement.cs
- MultiBinding.cs
- MyContact.cs
- LinqDataSourceContextEventArgs.cs
- RegexStringValidator.cs
- SchemaTableOptionalColumn.cs
- WindowsFormsLinkLabel.cs
- ArrayHelper.cs
- WindowsSolidBrush.cs
- NaturalLanguageHyphenator.cs
- ExclusiveCanonicalizationTransform.cs
- EventsTab.cs
- PersonalizationStateInfo.cs
- TraceXPathNavigator.cs
- IdentifierService.cs
- HttpTransportManager.cs
- TabPage.cs
- InvalidComObjectException.cs
- OperationGenerator.cs
- NameValueConfigurationElement.cs
- Hyperlink.cs
- IPHostEntry.cs
- DocumentViewerBase.cs
- LogWriteRestartAreaAsyncResult.cs
- DataSourceControlBuilder.cs
- GridEntry.cs
- Rule.cs
- ModuleElement.cs
- TextViewDesigner.cs
- PlainXmlSerializer.cs
- RangeValuePattern.cs
- RefreshPropertiesAttribute.cs
- ExternalException.cs
- ControlCachePolicy.cs
- IEnumerable.cs
- ResourceExpressionBuilder.cs
- TextHidden.cs
- MembershipSection.cs
- ProxyWebPartConnectionCollection.cs
- XMLSchema.cs
- DynamicVirtualDiscoSearcher.cs
- CaseExpr.cs
- MD5CryptoServiceProvider.cs
- WebPartAuthorizationEventArgs.cs
- IxmlLineInfo.cs
- Assert.cs
- ImportCatalogPart.cs
- SHA512CryptoServiceProvider.cs
- EnumMember.cs
- Calendar.cs
- ListViewItemSelectionChangedEvent.cs
- DispatcherExceptionEventArgs.cs
- XhtmlBasicPhoneCallAdapter.cs
- SynchronizedReadOnlyCollection.cs
- GenericIdentity.cs
- ServiceBusyException.cs