Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPRECT.cs / 1 / 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
- ExpressionBuilderCollection.cs
- DataObjectPastingEventArgs.cs
- DataGridRowEventArgs.cs
- RowParagraph.cs
- ExeConfigurationFileMap.cs
- StylusPointPropertyInfo.cs
- DataGridDetailsPresenter.cs
- COM2FontConverter.cs
- BuildProvider.cs
- Win32Exception.cs
- PeerOutputChannel.cs
- TypeName.cs
- WebConfigurationHostFileChange.cs
- RoutedEventConverter.cs
- MenuItemBinding.cs
- DataGridColumnCollection.cs
- ParameterReplacerVisitor.cs
- CellParagraph.cs
- Profiler.cs
- X509Extension.cs
- ImageMapEventArgs.cs
- DtrList.cs
- CodeNamespaceCollection.cs
- AttributeUsageAttribute.cs
- BuildProviderUtils.cs
- InputQueueChannel.cs
- TimeZone.cs
- PeerApplication.cs
- XmlSchemaIdentityConstraint.cs
- TypeBuilder.cs
- ControlPaint.cs
- BinaryNode.cs
- ContainerUtilities.cs
- HandoffBehavior.cs
- IdentityHolder.cs
- ArrangedElementCollection.cs
- Vector3DAnimationBase.cs
- TraceContextEventArgs.cs
- MLangCodePageEncoding.cs
- ObjectDataSourceSelectingEventArgs.cs
- SelectionItemPattern.cs
- IdentityModelStringsVersion1.cs
- InputProcessorProfilesLoader.cs
- CompositionTarget.cs
- CodeAccessSecurityEngine.cs
- XpsS0ValidatingLoader.cs
- FormViewDeletedEventArgs.cs
- GradientBrush.cs
- InvokeBase.cs
- SqlUserDefinedTypeAttribute.cs
- ToolStripSplitButton.cs
- SafeRightsManagementEnvironmentHandle.cs
- CngAlgorithmGroup.cs
- QilInvokeEarlyBound.cs
- ErrorFormatter.cs
- DefaultSerializationProviderAttribute.cs
- CodeObjectCreateExpression.cs
- ExtensionQuery.cs
- tooltip.cs
- PublisherMembershipCondition.cs
- PropertyTabChangedEvent.cs
- InvalidPrinterException.cs
- SecurityElement.cs
- SerializationEventsCache.cs
- MobileFormsAuthentication.cs
- DataGridViewRowHeaderCell.cs
- IDataContractSurrogate.cs
- SoapEnvelopeProcessingElement.cs
- ProtocolsConfigurationHandler.cs
- OutputCacheSection.cs
- GridViewColumnHeaderAutomationPeer.cs
- TextElementAutomationPeer.cs
- SecurityContext.cs
- UICuesEvent.cs
- MetadataArtifactLoaderCompositeFile.cs
- ToolStripGrip.cs
- SoapTypeAttribute.cs
- DelegateHelpers.cs
- DrawingCollection.cs
- Oci.cs
- UnknownWrapper.cs
- EventSetter.cs
- DisplayNameAttribute.cs
- MemberInitExpression.cs
- ThreadSafeList.cs
- Permission.cs
- CFGGrammar.cs
- EmissiveMaterial.cs
- DataObjectAttribute.cs
- ManagementEventArgs.cs
- DataPager.cs
- AsyncWaitHandle.cs
- DbConnectionClosed.cs
- QilInvokeEarlyBound.cs
- Metadata.cs
- XmlLoader.cs
- SqlFunctions.cs
- DocumentXPathNavigator.cs
- ResourceDescriptionAttribute.cs
- XMLDiffLoader.cs