Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPRECT.cs / 1305376 / GPRECT.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Drawing.Internal {
using System.Diagnostics;
using System;
using System.Drawing;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential)]
internal struct GPRECT {
internal int X;
internal int Y;
internal int Width;
internal int Height;
internal GPRECT(int x, int y, int width, int height) {
X = x;
Y = y;
Width = width;
Height = height;
}
internal GPRECT(Rectangle rect) {
X = rect.X;
Y = rect.Y;
Width = rect.Width;
Height = rect.Height;
}
internal Rectangle ToRectangle() {
return new Rectangle(X, Y, Width, Height);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Drawing.Internal {
using System.Diagnostics;
using System;
using System.Drawing;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential)]
internal struct GPRECT {
internal int X;
internal int Y;
internal int Width;
internal int Height;
internal GPRECT(int x, int y, int width, int height) {
X = x;
Y = y;
Width = width;
Height = height;
}
internal GPRECT(Rectangle rect) {
X = rect.X;
Y = rect.Y;
Width = rect.Width;
Height = rect.Height;
}
internal Rectangle ToRectangle() {
return new Rectangle(X, Y, Width, Height);
}
}
}
// 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
- InstanceValue.cs
- CFGGrammar.cs
- ResourceAttributes.cs
- HtmlInputRadioButton.cs
- NullReferenceException.cs
- EventMappingSettings.cs
- ObjectIDGenerator.cs
- BuildResultCache.cs
- FontStyleConverter.cs
- DelayedRegex.cs
- ModuleConfigurationInfo.cs
- FormViewDeletedEventArgs.cs
- ListBindableAttribute.cs
- EntityDataSourceContainerNameConverter.cs
- NumericUpDown.cs
- AudioBase.cs
- Pens.cs
- MobileControlsSection.cs
- SqlSelectStatement.cs
- Operator.cs
- DataViewListener.cs
- GlobalEventManager.cs
- _FixedSizeReader.cs
- TextElementAutomationPeer.cs
- HebrewNumber.cs
- InputScopeConverter.cs
- WeakReference.cs
- BorderGapMaskConverter.cs
- AbsoluteQuery.cs
- XmlAnyAttributeAttribute.cs
- NaturalLanguageHyphenator.cs
- HashSet.cs
- Encoding.cs
- PersonalizationStateInfoCollection.cs
- Separator.cs
- safemediahandle.cs
- BamlBinaryReader.cs
- xdrvalidator.cs
- RepeatBehaviorConverter.cs
- ImageAnimator.cs
- SystemIPv6InterfaceProperties.cs
- SqlMultiplexer.cs
- CodeExpressionCollection.cs
- IgnoreFileBuildProvider.cs
- WebControlParameterProxy.cs
- AlignmentYValidation.cs
- PasswordRecovery.cs
- HyperLinkField.cs
- PocoEntityKeyStrategy.cs
- OperationFormatStyle.cs
- Pointer.cs
- SelectionProcessor.cs
- MimeTypePropertyAttribute.cs
- DataAdapter.cs
- XmlUtil.cs
- Normalization.cs
- ToolStripTemplateNode.cs
- DivideByZeroException.cs
- DeploymentSection.cs
- MsmqIntegrationProcessProtocolHandler.cs
- Documentation.cs
- JumpList.cs
- DocumentViewer.cs
- cache.cs
- DataGridViewComponentPropertyGridSite.cs
- QuadraticBezierSegment.cs
- ContainerControl.cs
- EntityContainer.cs
- PriorityQueue.cs
- ParenthesizePropertyNameAttribute.cs
- DataGridViewDataConnection.cs
- OdbcCommandBuilder.cs
- ITreeGenerator.cs
- HashSetDebugView.cs
- ProgressBarRenderer.cs
- SecurityManager.cs
- DialogWindow.cs
- XmlSchemaSimpleContentRestriction.cs
- PasswordTextContainer.cs
- WindowsComboBox.cs
- BuilderPropertyEntry.cs
- CommandID.cs
- KeyToListMap.cs
- BaseValidatorDesigner.cs
- WebPartZone.cs
- UniqueIdentifierService.cs
- ExitEventArgs.cs
- ParenExpr.cs
- OdbcConnectionPoolProviderInfo.cs
- SchemaDeclBase.cs
- GridViewRowCollection.cs
- MetadataFile.cs
- Label.cs
- SchemaInfo.cs
- DataListItemCollection.cs
- ConsoleEntryPoint.cs
- FolderLevelBuildProviderCollection.cs
- SqlNode.cs
- ObjRef.cs
- SchemaNotation.cs