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 / 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
- StylusPointPropertyId.cs
- DataPagerFieldCommandEventArgs.cs
- Timer.cs
- newinstructionaction.cs
- SqlCacheDependencySection.cs
- BasicHttpBindingCollectionElement.cs
- SessionEndingCancelEventArgs.cs
- CollectionConverter.cs
- IndexerNameAttribute.cs
- WebHttpBehavior.cs
- UnmanagedMarshal.cs
- DbMetaDataColumnNames.cs
- PeerFlooder.cs
- DataContractSet.cs
- FormattedTextSymbols.cs
- WmlMobileTextWriter.cs
- ObservableDictionary.cs
- EditableLabelControl.cs
- RootBrowserWindowAutomationPeer.cs
- RandomNumberGenerator.cs
- X509CertificateCollection.cs
- DesignerCommandAdapter.cs
- SmtpDigestAuthenticationModule.cs
- ReadWriteSpinLock.cs
- RegexBoyerMoore.cs
- TextBoxView.cs
- CapabilitiesRule.cs
- IncrementalHitTester.cs
- ScrollBar.cs
- ObjectConverter.cs
- BaseCodePageEncoding.cs
- UpdateTracker.cs
- Animatable.cs
- entitydatasourceentitysetnameconverter.cs
- SetStoryboardSpeedRatio.cs
- CodeNamespaceImportCollection.cs
- CheckBoxList.cs
- FramingDecoders.cs
- DrawingContextWalker.cs
- Pair.cs
- CommonXSendMessage.cs
- SchemaNames.cs
- FigureHelper.cs
- GroupBoxRenderer.cs
- AudioLevelUpdatedEventArgs.cs
- ServicePointManager.cs
- UrlPath.cs
- EventMemberCodeDomSerializer.cs
- DoubleConverter.cs
- XAMLParseException.cs
- VariableModifiersHelper.cs
- InvalidCastException.cs
- DataGridViewColumnCollection.cs
- FontCacheUtil.cs
- AttributeQuery.cs
- RequestStatusBarUpdateEventArgs.cs
- WaitHandle.cs
- SettingsProperty.cs
- DataGridColumnHeadersPresenter.cs
- QualificationDataItem.cs
- ScopelessEnumAttribute.cs
- ClientSponsor.cs
- updateconfighost.cs
- NotifyCollectionChangedEventArgs.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- HotCommands.cs
- ProgressBarHighlightConverter.cs
- RadioButton.cs
- TreeView.cs
- PersonalizationProviderHelper.cs
- GetPageNumberCompletedEventArgs.cs
- StrokeCollection.cs
- XmlSchemaImport.cs
- CapabilitiesState.cs
- FormatSettings.cs
- ListBox.cs
- ToolTip.cs
- AnnotationStore.cs
- BindingExpressionBase.cs
- ServiceDurableInstanceContextProvider.cs
- DynamicObject.cs
- DrawingAttributesDefaultValueFactory.cs
- MemberCollection.cs
- WriteableBitmap.cs
- RenderDataDrawingContext.cs
- IBuiltInEvidence.cs
- PeerCollaborationPermission.cs
- CountdownEvent.cs
- WSTrustDec2005.cs
- XmlElementList.cs
- TypePresenter.xaml.cs
- RuntimeWrappedException.cs
- TreeNodeCollection.cs
- TypeInformation.cs
- SurrogateSelector.cs
- ScaleTransform.cs
- ServiceParser.cs
- HyperLinkColumn.cs
- JsonQueryStringConverter.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs