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
- AnnotationService.cs
- ExpressionBindingCollection.cs
- HttpApplication.cs
- RedistVersionInfo.cs
- ContentPosition.cs
- SqlProvider.cs
- XmlSchemaDocumentation.cs
- ByteRangeDownloader.cs
- WebBaseEventKeyComparer.cs
- ResXResourceReader.cs
- RegexEditorDialog.cs
- DocumentGrid.cs
- PermissionSetEnumerator.cs
- ToolStripArrowRenderEventArgs.cs
- UnsafeNativeMethodsMilCoreApi.cs
- MsmqIntegrationReceiveParameters.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- PathTooLongException.cs
- UpWmlMobileTextWriter.cs
- LongSumAggregationOperator.cs
- SRGSCompiler.cs
- StructuredProperty.cs
- SignatureDescription.cs
- StylusCollection.cs
- CheckBox.cs
- DeferrableContent.cs
- KnowledgeBase.cs
- XsltArgumentList.cs
- CertificateManager.cs
- MetadataExchangeClient.cs
- SpeechAudioFormatInfo.cs
- CreatingCookieEventArgs.cs
- CompressionTransform.cs
- AsymmetricAlgorithm.cs
- ConnectionStringsExpressionBuilder.cs
- BitmapEffectInput.cs
- DBConnection.cs
- UnsafeNativeMethods.cs
- precedingsibling.cs
- ClearCollection.cs
- PenLineCapValidation.cs
- NativeWrapper.cs
- ApplicationFileCodeDomTreeGenerator.cs
- XmlIgnoreAttribute.cs
- ReferentialConstraint.cs
- HttpCacheParams.cs
- ExtendedPropertyDescriptor.cs
- ComEventsSink.cs
- XmlNodeReader.cs
- SecureStringHasher.cs
- _ShellExpression.cs
- DefaultValueConverter.cs
- Literal.cs
- FixedSOMPage.cs
- SvcFileManager.cs
- FormViewUpdateEventArgs.cs
- Table.cs
- DeflateStreamAsyncResult.cs
- PointAnimation.cs
- HtmlEncodedRawTextWriter.cs
- ReliableChannelFactory.cs
- TreeView.cs
- ManifestBasedResourceGroveler.cs
- NavigateEvent.cs
- RadioButtonRenderer.cs
- DispatcherExceptionFilterEventArgs.cs
- SplashScreen.cs
- ComboBox.cs
- AppDomainFactory.cs
- JsonWriter.cs
- DataControlFieldCollection.cs
- IPEndPointCollection.cs
- EntitySetRetriever.cs
- HashSet.cs
- Rule.cs
- Stack.cs
- MergeLocalizationDirectives.cs
- activationcontext.cs
- ReadOnlyObservableCollection.cs
- BooleanExpr.cs
- InheritanceUI.cs
- TcpActivation.cs
- KeyEventArgs.cs
- UserControlDocumentDesigner.cs
- IsolatedStorageFileStream.cs
- UInt64Storage.cs
- WebServiceTypeData.cs
- Image.cs
- TableStyle.cs
- RemotingConfiguration.cs
- Speller.cs
- SqlDuplicator.cs
- SynchronizationLockException.cs
- FunctionCommandText.cs
- TextFindEngine.cs
- WindowsListViewItemStartMenu.cs
- WebPartAuthorizationEventArgs.cs
- XmlQualifiedName.cs
- MachineKey.cs
- securitycriticaldata.cs