Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Track.cs
- ServiceEndpointElement.cs
- BackStopAuthenticationModule.cs
- QueueProcessor.cs
- TabItemAutomationPeer.cs
- ProxyRpc.cs
- EntityContainer.cs
- TextEditorTyping.cs
- InternalConfigSettingsFactory.cs
- DesignerLinkAdapter.cs
- WindowsToolbarItemAsMenuItem.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- PrimaryKeyTypeConverter.cs
- WorkerRequest.cs
- DescendantBaseQuery.cs
- XmlSchemaNotation.cs
- XmlElementList.cs
- SchemaEntity.cs
- IteratorDescriptor.cs
- FileVersionInfo.cs
- FormsAuthenticationModule.cs
- EntityViewContainer.cs
- Dynamic.cs
- FlowLayoutPanel.cs
- BaseComponentEditor.cs
- DataFieldConverter.cs
- ExecutionEngineException.cs
- OwnerDrawPropertyBag.cs
- RegexCode.cs
- SqlReferenceCollection.cs
- SemanticAnalyzer.cs
- CodeEventReferenceExpression.cs
- Grid.cs
- UInt32Converter.cs
- CharAnimationUsingKeyFrames.cs
- EnterpriseServicesHelper.cs
- MailBnfHelper.cs
- ColumnReorderedEventArgs.cs
- WebControlToolBoxItem.cs
- Parameter.cs
- SimpleTableProvider.cs
- securitymgrsite.cs
- EndOfStreamException.cs
- DataGridViewLinkCell.cs
- DES.cs
- WindowsListViewScroll.cs
- Directory.cs
- Tile.cs
- GridViewDeletedEventArgs.cs
- CultureInfoConverter.cs
- PermissionSetEnumerator.cs
- CallSiteHelpers.cs
- XmlSchemaAttributeGroupRef.cs
- ProgressChangedEventArgs.cs
- SharedStatics.cs
- Regex.cs
- TextContainerChangedEventArgs.cs
- HighlightVisual.cs
- RepeaterItem.cs
- HostProtectionPermission.cs
- ChangeToolStripParentVerb.cs
- IIS7WorkerRequest.cs
- SqlUtil.cs
- ErrorStyle.cs
- ParameterBinding.cs
- SequenceDesigner.cs
- PersonalizationEntry.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- DataGridViewCellStyleChangedEventArgs.cs
- UdpDiscoveryEndpointProvider.cs
- Base64Decoder.cs
- HandlerFactoryCache.cs
- MessagePartDescription.cs
- SqlMultiplexer.cs
- MeasureData.cs
- ProxyFragment.cs
- __ComObject.cs
- PersonalizationStateQuery.cs
- LocatorManager.cs
- IdentityReference.cs
- ButtonAutomationPeer.cs
- SchemaNamespaceManager.cs
- IISMapPath.cs
- XmlUtf8RawTextWriter.cs
- FieldBuilder.cs
- OleStrCAMarshaler.cs
- streamingZipPartStream.cs
- RoleGroupCollectionEditor.cs
- StringConverter.cs
- StrongNameUtility.cs
- CustomBindingElement.cs
- Panel.cs
- PassportAuthentication.cs
- SecureUICommand.cs
- DataGridViewCellCollection.cs
- RC2.cs
- Dispatcher.cs
- DataGridrowEditEndingEventArgs.cs
- DesignerCategoryAttribute.cs
- AnimationTimeline.cs