Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeSerializationManager.cs
- XmlCharCheckingReader.cs
- FileClassifier.cs
- TokenizerHelper.cs
- IPAddressCollection.cs
- MetadataSerializer.cs
- SiteMap.cs
- Win32Exception.cs
- ModelFunctionTypeElement.cs
- SafeUserTokenHandle.cs
- TargetConverter.cs
- FileSystemWatcher.cs
- ContainerParaClient.cs
- GraphicsState.cs
- BoundingRectTracker.cs
- controlskin.cs
- ObjectDataSourceEventArgs.cs
- StylusEditingBehavior.cs
- MemoryRecordBuffer.cs
- IndentTextWriter.cs
- CodeActivityContext.cs
- RC2.cs
- StreamingContext.cs
- Axis.cs
- DynamicValidatorEventArgs.cs
- ITextView.cs
- WebScriptMetadataFormatter.cs
- MethodImplAttribute.cs
- WhitespaceRule.cs
- Container.cs
- ActivationArguments.cs
- ScriptReferenceEventArgs.cs
- MetadataHelper.cs
- SafeNativeMethodsCLR.cs
- XsdDuration.cs
- TemplateBaseAction.cs
- TransformerInfoCollection.cs
- _UriSyntax.cs
- ElementMarkupObject.cs
- PrimitiveXmlSerializers.cs
- SessionState.cs
- Vector3DAnimationBase.cs
- HMACSHA1.cs
- InputLangChangeRequestEvent.cs
- MimeParameterWriter.cs
- RelationalExpressions.cs
- SecurityAlgorithmSuiteConverter.cs
- WindowsListViewGroup.cs
- AuthenticationModuleElementCollection.cs
- DllNotFoundException.cs
- RuntimeEnvironment.cs
- HttpProfileGroupBase.cs
- TypeToken.cs
- SqlDataSourceStatusEventArgs.cs
- ZipIOExtraField.cs
- PeerPresenceInfo.cs
- PeerInvitationResponse.cs
- SmtpFailedRecipientException.cs
- GifBitmapEncoder.cs
- MenuScrollingVisibilityConverter.cs
- NullableDoubleAverageAggregationOperator.cs
- File.cs
- Metadata.cs
- SqlDeflator.cs
- RepeatButtonAutomationPeer.cs
- HostProtectionPermission.cs
- BuildProvidersCompiler.cs
- HitTestFilterBehavior.cs
- URL.cs
- GregorianCalendar.cs
- CounterSampleCalculator.cs
- basecomparevalidator.cs
- DataMisalignedException.cs
- odbcmetadatacollectionnames.cs
- TabControlDesigner.cs
- AsyncCallback.cs
- JsonFormatGeneratorStatics.cs
- WebServiceTypeData.cs
- PagesSection.cs
- CompModHelpers.cs
- Point3DAnimationBase.cs
- DataBinding.cs
- FreezableCollection.cs
- HtmlTableRow.cs
- ServiceBuildProvider.cs
- ColorInterpolationModeValidation.cs
- dbenumerator.cs
- HighlightComponent.cs
- Label.cs
- EastAsianLunisolarCalendar.cs
- DataGridViewSelectedCellCollection.cs
- LoginView.cs
- InteropEnvironment.cs
- PowerStatus.cs
- AggregateNode.cs
- CorrelationManager.cs
- RenderOptions.cs
- SocketException.cs
- TextEndOfParagraph.cs
- SystemUdpStatistics.cs