Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewLayoutData.cs / 1305376 / 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
- Control.cs
- StylusEventArgs.cs
- OdbcException.cs
- TextTreeUndo.cs
- XmlUtil.cs
- ImageMapEventArgs.cs
- AnchoredBlock.cs
- UriExt.cs
- HttpPostedFile.cs
- ToolBarPanel.cs
- FtpRequestCacheValidator.cs
- KeyedHashAlgorithm.cs
- Imaging.cs
- SqlLiftIndependentRowExpressions.cs
- WSDualHttpBinding.cs
- ModuleElement.cs
- DataGridViewCellFormattingEventArgs.cs
- TemplateBamlTreeBuilder.cs
- ListBoxItemAutomationPeer.cs
- EventMap.cs
- EndpointNameMessageFilter.cs
- SqlDataSourceParameterParser.cs
- ToolZone.cs
- TrueReadOnlyCollection.cs
- DocumentReference.cs
- ValidationErrorInfo.cs
- VectorConverter.cs
- HyperLink.cs
- SafeCoTaskMem.cs
- PersistChildrenAttribute.cs
- ClientProxyGenerator.cs
- Vector3DAnimationBase.cs
- PerfCounterSection.cs
- Opcode.cs
- ListViewEditEventArgs.cs
- ObjectListDesigner.cs
- CheckableControlBaseAdapter.cs
- ProviderCommandInfoUtils.cs
- ConstructorNeedsTagAttribute.cs
- ConnectionPoolManager.cs
- DataViewManagerListItemTypeDescriptor.cs
- RoutedCommand.cs
- Privilege.cs
- AssemblyAttributes.cs
- InteropAutomationProvider.cs
- OneOfConst.cs
- DataGridAddNewRow.cs
- MissingFieldException.cs
- SapiRecoContext.cs
- NumericUpDownAcceleration.cs
- UnsafeNativeMethods.cs
- transactioncontext.cs
- Part.cs
- VectorAnimationUsingKeyFrames.cs
- PrimitiveSchema.cs
- HelpKeywordAttribute.cs
- MdImport.cs
- EntityKey.cs
- PanelStyle.cs
- InfoCardCryptoHelper.cs
- JsonServiceDocumentSerializer.cs
- UndoEngine.cs
- PeerCollaborationPermission.cs
- CodeAttributeDeclarationCollection.cs
- DataFieldConverter.cs
- ContractListAdapter.cs
- HttpRawResponse.cs
- Timer.cs
- WebPartActionVerb.cs
- httpapplicationstate.cs
- ErrorTableItemStyle.cs
- _SSPISessionCache.cs
- ReversePositionQuery.cs
- InitializationEventAttribute.cs
- EntityProviderFactory.cs
- PassportPrincipal.cs
- ConfigViewGenerator.cs
- TdsValueSetter.cs
- WebBrowserEvent.cs
- ObjectListDesigner.cs
- XmlSerializer.cs
- MouseGestureValueSerializer.cs
- GridViewDeleteEventArgs.cs
- Switch.cs
- DSASignatureDeformatter.cs
- TimeEnumHelper.cs
- _HTTPDateParse.cs
- QuaternionAnimationBase.cs
- QuaternionIndependentAnimationStorage.cs
- ValidationErrorEventArgs.cs
- SourceFileBuildProvider.cs
- PlaceHolder.cs
- EnumerableCollectionView.cs
- ConfigsHelper.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ReferencedAssemblyResolver.cs
- HtmlTitle.cs
- SiteMapPath.cs
- AutomationPropertyInfo.cs
- EncryptedPackage.cs