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
- _LazyAsyncResult.cs
- UTF32Encoding.cs
- SystemDiagnosticsSection.cs
- EditingCommands.cs
- TraceInternal.cs
- MenuItem.cs
- AsymmetricSignatureFormatter.cs
- ContentOperations.cs
- StorageMappingFragment.cs
- LocalizationComments.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- COM2ComponentEditor.cs
- ArgumentOutOfRangeException.cs
- Hash.cs
- MailAddressCollection.cs
- ProcessModelSection.cs
- HttpConfigurationContext.cs
- XmlAtomicValue.cs
- BamlBinaryWriter.cs
- GradientStop.cs
- TagPrefixInfo.cs
- Content.cs
- HtmlInputHidden.cs
- HtmlMeta.cs
- KeyedHashAlgorithm.cs
- EmptyReadOnlyDictionaryInternal.cs
- Container.cs
- GeometryDrawing.cs
- ObjectAssociationEndMapping.cs
- ConnectorSelectionGlyph.cs
- MimePart.cs
- Bitmap.cs
- AddressUtility.cs
- BamlLocalizationDictionary.cs
- XmlSerializationGeneratedCode.cs
- FormViewDeleteEventArgs.cs
- MissingMemberException.cs
- PrintPageEvent.cs
- RuleSettings.cs
- SqlCommandBuilder.cs
- ComPlusDiagnosticTraceRecords.cs
- XmlIterators.cs
- NetMsmqSecurityMode.cs
- HostProtectionPermission.cs
- CustomAssemblyResolver.cs
- ResponseStream.cs
- ToolStripGripRenderEventArgs.cs
- DragStartedEventArgs.cs
- IPipelineRuntime.cs
- RegexCode.cs
- _NetworkingPerfCounters.cs
- FtpCachePolicyElement.cs
- AutomationProperties.cs
- WebPartConnectionsDisconnectVerb.cs
- tibetanshape.cs
- BitmapEffect.cs
- ContextStack.cs
- PageContentCollection.cs
- ToolStripStatusLabel.cs
- StyleCollection.cs
- DoubleLinkListEnumerator.cs
- ConfigurationValue.cs
- XmlValidatingReader.cs
- safelinkcollection.cs
- DataGridViewEditingControlShowingEventArgs.cs
- RuntimeCompatibilityAttribute.cs
- MemoryPressure.cs
- ObjectQueryProvider.cs
- LogWriteRestartAreaState.cs
- BindToObject.cs
- SystemNetworkInterface.cs
- SetterBaseCollection.cs
- ClientScriptManager.cs
- SqlConnection.cs
- WCFModelStrings.Designer.cs
- ScalarConstant.cs
- DefaultParameterValueAttribute.cs
- LayoutTable.cs
- counter.cs
- Attachment.cs
- KerberosSecurityTokenParameters.cs
- AppSettingsExpressionEditor.cs
- FormsAuthenticationModule.cs
- DataGrid.cs
- PlainXmlDeserializer.cs
- WaitHandleCannotBeOpenedException.cs
- DragDeltaEventArgs.cs
- ColorConvertedBitmap.cs
- ObjectSelectorEditor.cs
- EdmPropertyAttribute.cs
- DialogResultConverter.cs
- JsonWriter.cs
- GenericXmlSecurityToken.cs
- TextProperties.cs
- AbstractDataSvcMapFileLoader.cs
- MgmtResManager.cs
- SafeSystemMetrics.cs
- TableItemStyle.cs
- OutputCacheSettingsSection.cs
- HostExecutionContextManager.cs