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
- smtppermission.cs
- ImageResources.Designer.cs
- AbstractSvcMapFileLoader.cs
- MemoryRecordBuffer.cs
- DataGridLength.cs
- ToolStripSystemRenderer.cs
- OleDbPermission.cs
- RecognizedAudio.cs
- UnknownWrapper.cs
- SqlDependencyUtils.cs
- DeleteCardRequest.cs
- ToolStripOverflowButton.cs
- BinaryUtilClasses.cs
- ProtocolViolationException.cs
- ObjectIDGenerator.cs
- Socket.cs
- WSSecureConversationFeb2005.cs
- CapabilitiesState.cs
- ValueExpressions.cs
- ReflectionTypeLoadException.cs
- ViewGenerator.cs
- MyContact.cs
- BasicCellRelation.cs
- DeviceSpecificDesigner.cs
- SoapAttributeAttribute.cs
- AttachedPropertyBrowsableAttribute.cs
- IdentitySection.cs
- ExternalException.cs
- SettingsAttributeDictionary.cs
- TagMapCollection.cs
- SystemResources.cs
- HttpVersion.cs
- Queue.cs
- BinaryReader.cs
- NameTable.cs
- TextCompositionManager.cs
- XmlSerializerVersionAttribute.cs
- GeneralTransform3D.cs
- SystemIPInterfaceStatistics.cs
- ObjectDataSource.cs
- base64Transforms.cs
- SystemKeyConverter.cs
- RegexRunner.cs
- HtmlMobileTextWriter.cs
- RuntimeCompatibilityAttribute.cs
- _UriSyntax.cs
- RegexStringValidatorAttribute.cs
- CodeChecksumPragma.cs
- DataGridViewTopLeftHeaderCell.cs
- CapabilitiesSection.cs
- CompositeActivityTypeDescriptor.cs
- LambdaCompiler.ControlFlow.cs
- DiscoveryDocumentSerializer.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- CodeParameterDeclarationExpression.cs
- HtmlTableRow.cs
- UInt32.cs
- SqlBulkCopyColumnMappingCollection.cs
- ServiceRoute.cs
- MsmqIntegrationOutputChannel.cs
- DelimitedListTraceListener.cs
- PagesChangedEventArgs.cs
- TypedDataSourceCodeGenerator.cs
- TimeoutValidationAttribute.cs
- DataRelationPropertyDescriptor.cs
- SqlUDTStorage.cs
- Int16AnimationBase.cs
- TemplateColumn.cs
- XmlSchemaImport.cs
- WebPartActionVerb.cs
- LoadItemsEventArgs.cs
- RtfFormatStack.cs
- SessionSwitchEventArgs.cs
- LZCodec.cs
- WizardStepBase.cs
- CreatingCookieEventArgs.cs
- FontInfo.cs
- InstanceLockedException.cs
- printdlgexmarshaler.cs
- BackStopAuthenticationModule.cs
- oledbmetadatacollectionnames.cs
- NotImplementedException.cs
- AttributeQuery.cs
- QilBinary.cs
- HighContrastHelper.cs
- ConfigurationManagerInternalFactory.cs
- DataGridViewRowConverter.cs
- SelectionHighlightInfo.cs
- ResXBuildProvider.cs
- HttpCacheParams.cs
- ArgumentDirectionHelper.cs
- MouseEvent.cs
- CodeStatementCollection.cs
- SqlUserDefinedAggregateAttribute.cs
- WindowsUpDown.cs
- Registry.cs
- GenericUriParser.cs
- PixelShader.cs
- ConfigurationProperty.cs
- XmlILStorageConverter.cs