Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / TableLayoutCellPaintEventArgs.cs / 1 / TableLayoutCellPaintEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Drawing.Design; using System.Globalization; using System.Windows.Forms.Layout; ////// /// This is the overrided PaintEventArgs for painting the cell of the table /// It contains additional information indicating the row/column of the cell /// as well as the bound of the cell /// public class TableLayoutCellPaintEventArgs : PaintEventArgs { private Rectangle bounds; private int row; private int column; ///public TableLayoutCellPaintEventArgs(Graphics g, Rectangle clipRectangle, Rectangle cellBounds, int column, int row) : base(g, clipRectangle) { this.bounds = cellBounds; this.row = row; this.column = column; } //the bounds of the cell /// public Rectangle CellBounds { get { return bounds; } } //the row index of the cell /// public int Row { get { return row; } } //the column index of the cell /// public int Column { get { return column; } } } } // 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.Collections; using System.ComponentModel; using System.Drawing; using System.Drawing.Design; using System.Globalization; using System.Windows.Forms.Layout; ////// /// This is the overrided PaintEventArgs for painting the cell of the table /// It contains additional information indicating the row/column of the cell /// as well as the bound of the cell /// public class TableLayoutCellPaintEventArgs : PaintEventArgs { private Rectangle bounds; private int row; private int column; ///public TableLayoutCellPaintEventArgs(Graphics g, Rectangle clipRectangle, Rectangle cellBounds, int column, int row) : base(g, clipRectangle) { this.bounds = cellBounds; this.row = row; this.column = column; } //the bounds of the cell /// public Rectangle CellBounds { get { return bounds; } } //the row index of the cell /// public int Row { get { return row; } } //the column index of the cell /// public int Column { get { return column; } } } } // 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
- WeakEventTable.cs
- HostExecutionContextManager.cs
- IntPtr.cs
- CapabilitiesAssignment.cs
- BatchWriter.cs
- DesignerWidgets.cs
- ResourceReader.cs
- PrintPreviewGraphics.cs
- WebBrowser.cs
- DbBuffer.cs
- DataGridAddNewRow.cs
- Roles.cs
- ZipIOExtraFieldZip64Element.cs
- RichTextBoxAutomationPeer.cs
- GridViewAutomationPeer.cs
- SqlXmlStorage.cs
- ReadOnlyHierarchicalDataSourceView.cs
- UnsafeNativeMethods.cs
- ClientConfigPaths.cs
- ServiceObjectContainer.cs
- PreviewPageInfo.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- SchemaEntity.cs
- Renderer.cs
- FlowDocumentReader.cs
- EntityViewContainer.cs
- DynamicValueConverter.cs
- ListViewUpdateEventArgs.cs
- PageParserFilter.cs
- BaseWebProxyFinder.cs
- DecoderNLS.cs
- TemplateBuilder.cs
- Help.cs
- ListenerAdapterBase.cs
- securestring.cs
- ScriptingWebServicesSectionGroup.cs
- XmlElementAttribute.cs
- SchemaImporter.cs
- DiscoveryDocument.cs
- HttpCapabilitiesBase.cs
- WorkflowOwnerAsyncResult.cs
- XamlTypeMapperSchemaContext.cs
- XmlnsDictionary.cs
- __Error.cs
- ManagementOptions.cs
- ThreadStartException.cs
- FileDialog_Vista_Interop.cs
- WebMessageBodyStyleHelper.cs
- XmlSchemaSimpleContent.cs
- ColorEditor.cs
- OneOfElement.cs
- dataprotectionpermission.cs
- TextEffectResolver.cs
- EdmFunctionAttribute.cs
- EnumType.cs
- PageContentAsyncResult.cs
- ValidationHelper.cs
- SmiContext.cs
- PrintController.cs
- ProcessInputEventArgs.cs
- StringPropertyBuilder.cs
- X509Utils.cs
- QilNode.cs
- SecurityContext.cs
- ChannelRequirements.cs
- EdmPropertyAttribute.cs
- SelectionEditingBehavior.cs
- CharEntityEncoderFallback.cs
- TextUtf8RawTextWriter.cs
- SecurityChannel.cs
- SafeReadContext.cs
- AmbientEnvironment.cs
- RtfToXamlLexer.cs
- ResolveDuplexCD1AsyncResult.cs
- FloaterBaseParaClient.cs
- RegistryPermission.cs
- FactoryGenerator.cs
- XmlDictionaryReaderQuotas.cs
- WebDisplayNameAttribute.cs
- HandleRef.cs
- TogglePattern.cs
- SoapTypeAttribute.cs
- DataGridItem.cs
- InstanceOwnerException.cs
- TranslateTransform.cs
- DummyDataSource.cs
- StateChangeEvent.cs
- FontUnit.cs
- CssClassPropertyAttribute.cs
- KeyboardNavigation.cs
- NotifyIcon.cs
- COSERVERINFO.cs
- ParallelTimeline.cs
- LocalizedNameDescriptionPair.cs
- DataGrid.cs
- MailBnfHelper.cs
- ProxyAttribute.cs
- CacheDependency.cs
- FilteredAttributeCollection.cs
- TextEditorContextMenu.cs