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
- SocketCache.cs
- FrameworkElementFactoryMarkupObject.cs
- TrustLevelCollection.cs
- PackagePartCollection.cs
- Registration.cs
- XPathBuilder.cs
- ParameterElementCollection.cs
- TypeToStringValueConverter.cs
- SerializationInfoEnumerator.cs
- HttpModulesSection.cs
- DbProviderConfigurationHandler.cs
- HttpRequestCacheValidator.cs
- MachineKeyConverter.cs
- Simplifier.cs
- CurrentChangingEventManager.cs
- ColorBlend.cs
- NavigatorInput.cs
- EventData.cs
- EntityWrapperFactory.cs
- HttpRawResponse.cs
- FontInfo.cs
- VectorCollection.cs
- MdiWindowListItemConverter.cs
- BitmapEffectDrawing.cs
- ListenerConstants.cs
- ModelItem.cs
- NegationPusher.cs
- MediaCommands.cs
- DelegatingStream.cs
- TcpTransportManager.cs
- WebRequest.cs
- MD5CryptoServiceProvider.cs
- WmlValidatorAdapter.cs
- IItemProperties.cs
- Misc.cs
- ListViewItemEventArgs.cs
- GatewayIPAddressInformationCollection.cs
- BinaryReader.cs
- TreeNodeStyleCollection.cs
- BoundingRectTracker.cs
- CellConstant.cs
- SynchronizedInputAdaptor.cs
- InputLanguageSource.cs
- remotingproxy.cs
- Attribute.cs
- RenderingEventArgs.cs
- TableCell.cs
- ListViewItem.cs
- QilNode.cs
- TextMetrics.cs
- ClientSession.cs
- ServerProtocol.cs
- AssemblyCollection.cs
- ArrangedElementCollection.cs
- RemoteWebConfigurationHost.cs
- WebPartCancelEventArgs.cs
- TokenBasedSet.cs
- AnimatedTypeHelpers.cs
- HTMLTextWriter.cs
- WebPartDisplayModeEventArgs.cs
- DefaultHttpHandler.cs
- PhoneCallDesigner.cs
- CodeActivityContext.cs
- DataControlButton.cs
- loginstatus.cs
- bidPrivateBase.cs
- XmlLoader.cs
- RoutedCommand.cs
- AppliedDeviceFiltersDialog.cs
- StatusBar.cs
- SqlBooleanMismatchVisitor.cs
- PostBackOptions.cs
- Stackframe.cs
- ElementProxy.cs
- DataGrid.cs
- TagPrefixCollection.cs
- JumpItem.cs
- SocketManager.cs
- SplitContainer.cs
- DataBinder.cs
- ProcessDesigner.cs
- XmlArrayItemAttribute.cs
- M3DUtil.cs
- Matrix3D.cs
- ConditionCollection.cs
- GridViewEditEventArgs.cs
- ViewBox.cs
- UnionExpr.cs
- XmlSchemaComplexContentRestriction.cs
- ExtensibleSyndicationObject.cs
- CaseStatement.cs
- XamlContextStack.cs
- TiffBitmapDecoder.cs
- WebPartConnectionsCancelEventArgs.cs
- DSASignatureFormatter.cs
- AsyncOperationManager.cs
- SQLDouble.cs
- ExpressionBindingsDialog.cs
- XmlWriter.cs
- Asn1IntegerConverter.cs