Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewLayoutData.cs / 1 / DataGridViewLayoutData.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System.Drawing;
using System.Text;
namespace System.Windows.Forms
{
public partial class DataGridView
{
internal class LayoutData
{
internal bool dirty = true;
// used for resizing.
public Rectangle ClientRectangle = Rectangle.Empty;
// region inside the dataGridView's borders.
public Rectangle Inside = Rectangle.Empty;
// region occupied by row headers
public Rectangle RowHeaders = Rectangle.Empty;
// region occupied by column headers
public Rectangle ColumnHeaders = Rectangle.Empty;
// top left header cell
public Rectangle TopLeftHeader = Rectangle.Empty;
// region for the cells
public Rectangle Data = Rectangle.Empty;
// square connecting the two scrollbars
public Rectangle ResizeBoxRect = Rectangle.Empty;
public bool ColumnHeadersVisible;
public bool RowHeadersVisible;
public LayoutData()
{
}
public LayoutData(LayoutData src)
{
this.ClientRectangle = src.ClientRectangle;
this.TopLeftHeader = src.TopLeftHeader;
this.ColumnHeaders = src.ColumnHeaders;
this.RowHeaders = src.RowHeaders;
this.Inside = src.Inside;
this.Data = src.Data;
this.ResizeBoxRect = src.ResizeBoxRect;
this.ColumnHeadersVisible = src.ColumnHeadersVisible;
this.RowHeadersVisible = src.RowHeadersVisible;
}
public override string ToString()
{
StringBuilder sb = new StringBuilder(100);
sb.Append(base.ToString());
sb.Append(" { \n");
sb.Append("ClientRectangle = ");
sb.Append(ClientRectangle.ToString());
sb.Append('\n');
sb.Append("Inside = ");
sb.Append(Inside.ToString());
sb.Append('\n');
sb.Append("TopLeftHeader = ");
sb.Append(TopLeftHeader.ToString());
sb.Append('\n');
sb.Append("ColumnHeaders = ");
sb.Append(ColumnHeaders.ToString());
sb.Append('\n');
sb.Append("RowHeaders = ");
sb.Append(RowHeaders.ToString());
sb.Append('\n');
sb.Append("Data = ");
sb.Append(Data.ToString());
sb.Append('\n');
sb.Append("ResizeBoxRect = ");
sb.Append(ResizeBoxRect.ToString());
sb.Append('\n');
sb.Append("ColumnHeadersVisible = ");
sb.Append(ColumnHeadersVisible.ToString());
sb.Append('\n');
sb.Append("RowHeadersVisible = ");
sb.Append(RowHeadersVisible.ToString());
sb.Append(" }");
return sb.ToString();
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System.Drawing;
using System.Text;
namespace System.Windows.Forms
{
public partial class DataGridView
{
internal class LayoutData
{
internal bool dirty = true;
// used for resizing.
public Rectangle ClientRectangle = Rectangle.Empty;
// region inside the dataGridView's borders.
public Rectangle Inside = Rectangle.Empty;
// region occupied by row headers
public Rectangle RowHeaders = Rectangle.Empty;
// region occupied by column headers
public Rectangle ColumnHeaders = Rectangle.Empty;
// top left header cell
public Rectangle TopLeftHeader = Rectangle.Empty;
// region for the cells
public Rectangle Data = Rectangle.Empty;
// square connecting the two scrollbars
public Rectangle ResizeBoxRect = Rectangle.Empty;
public bool ColumnHeadersVisible;
public bool RowHeadersVisible;
public LayoutData()
{
}
public LayoutData(LayoutData src)
{
this.ClientRectangle = src.ClientRectangle;
this.TopLeftHeader = src.TopLeftHeader;
this.ColumnHeaders = src.ColumnHeaders;
this.RowHeaders = src.RowHeaders;
this.Inside = src.Inside;
this.Data = src.Data;
this.ResizeBoxRect = src.ResizeBoxRect;
this.ColumnHeadersVisible = src.ColumnHeadersVisible;
this.RowHeadersVisible = src.RowHeadersVisible;
}
public override string ToString()
{
StringBuilder sb = new StringBuilder(100);
sb.Append(base.ToString());
sb.Append(" { \n");
sb.Append("ClientRectangle = ");
sb.Append(ClientRectangle.ToString());
sb.Append('\n');
sb.Append("Inside = ");
sb.Append(Inside.ToString());
sb.Append('\n');
sb.Append("TopLeftHeader = ");
sb.Append(TopLeftHeader.ToString());
sb.Append('\n');
sb.Append("ColumnHeaders = ");
sb.Append(ColumnHeaders.ToString());
sb.Append('\n');
sb.Append("RowHeaders = ");
sb.Append(RowHeaders.ToString());
sb.Append('\n');
sb.Append("Data = ");
sb.Append(Data.ToString());
sb.Append('\n');
sb.Append("ResizeBoxRect = ");
sb.Append(ResizeBoxRect.ToString());
sb.Append('\n');
sb.Append("ColumnHeadersVisible = ");
sb.Append(ColumnHeadersVisible.ToString());
sb.Append('\n');
sb.Append("RowHeadersVisible = ");
sb.Append(RowHeadersVisible.ToString());
sb.Append(" }");
return sb.ToString();
}
}
}
}
// 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
- PerspectiveCamera.cs
- ChannelDispatcherCollection.cs
- FontDriver.cs
- PageThemeParser.cs
- DataGridViewHitTestInfo.cs
- SessionEndingEventArgs.cs
- AuthenticationModulesSection.cs
- WindowVisualStateTracker.cs
- TaiwanLunisolarCalendar.cs
- FileRegion.cs
- WebBrowser.cs
- EasingQuaternionKeyFrame.cs
- HtmlInputSubmit.cs
- CodeDirectionExpression.cs
- WindowsPen.cs
- PathGradientBrush.cs
- TreeViewItem.cs
- TextTreePropertyUndoUnit.cs
- FileDialogCustomPlace.cs
- GeometryDrawing.cs
- AttributeSetAction.cs
- ModifiableIteratorCollection.cs
- WeakReferenceEnumerator.cs
- PipeStream.cs
- EpmAttributeNameBuilder.cs
- unsafeIndexingFilterStream.cs
- TraceContextEventArgs.cs
- QueryCursorEventArgs.cs
- GridView.cs
- PointIndependentAnimationStorage.cs
- WebPartConnectionsEventArgs.cs
- CorrelationTokenInvalidatedHandler.cs
- PositiveTimeSpanValidator.cs
- SerialStream.cs
- SelectedGridItemChangedEvent.cs
- Win32SafeHandles.cs
- ServiceDurableInstanceContextProvider.cs
- CompositionTarget.cs
- DescendantOverDescendantQuery.cs
- ItemCollection.cs
- AppSettingsReader.cs
- FamilyCollection.cs
- arabicshape.cs
- TrackingProfileCache.cs
- SecurityTokenAttachmentMode.cs
- MouseBinding.cs
- BamlStream.cs
- PropertyInformationCollection.cs
- DelimitedListTraceListener.cs
- DataGridViewCheckBoxCell.cs
- CodeDefaultValueExpression.cs
- WebPageTraceListener.cs
- PageAsyncTaskManager.cs
- AnnotationDocumentPaginator.cs
- KeyFrames.cs
- BmpBitmapDecoder.cs
- GeneralTransform3DTo2DTo3D.cs
- PhysicalOps.cs
- OdbcDataReader.cs
- EventLogPermissionEntryCollection.cs
- UnmanagedMarshal.cs
- EntityDataSourceViewSchema.cs
- DataServiceKeyAttribute.cs
- DefinitionBase.cs
- Crypto.cs
- WebConfigurationHost.cs
- TypeBrowser.xaml.cs
- ConnectionStringsExpressionBuilder.cs
- HtmlElementCollection.cs
- OutputScope.cs
- DynamicResourceExtension.cs
- Error.cs
- BinarySerializer.cs
- ModelPerspective.cs
- FormCollection.cs
- CorrelationHandle.cs
- FontNamesConverter.cs
- CaseExpr.cs
- Scheduler.cs
- SelectionItemPattern.cs
- SpotLight.cs
- RecognizedWordUnit.cs
- DiscoveryInnerClientManaged11.cs
- SchemaType.cs
- XsdDataContractExporter.cs
- DataSourceHelper.cs
- TdsEnums.cs
- SqlFileStream.cs
- LabelLiteral.cs
- MessageSmuggler.cs
- PartialClassGenerationTask.cs
- HostSecurityManager.cs
- DependencyPropertyConverter.cs
- DiffuseMaterial.cs
- ListViewGroupItemCollection.cs
- ScopelessEnumAttribute.cs
- ConnectionOrientedTransportManager.cs
- XmlElementAttributes.cs
- OutgoingWebRequestContext.cs
- SQLBytesStorage.cs