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
- XsdSchemaFileEditor.cs
- DrawingBrush.cs
- XmlNamedNodeMap.cs
- X509LogoTypeExtension.cs
- RegisterInfo.cs
- ActivityTypeCodeDomSerializer.cs
- EventItfInfo.cs
- DragDropManager.cs
- SuppressIldasmAttribute.cs
- NativeMethods.cs
- Visitors.cs
- SqlStream.cs
- AesCryptoServiceProvider.cs
- PixelFormat.cs
- CodeGenerator.cs
- FontWeights.cs
- TimeSpanMinutesConverter.cs
- CustomCategoryAttribute.cs
- AccessibilityHelperForVista.cs
- DataTableCollection.cs
- XmlDeclaration.cs
- StrongNameSignatureInformation.cs
- WebPartVerb.cs
- reliableinputsessionchannel.cs
- ContentPosition.cs
- ReflectionPermission.cs
- ComNativeDescriptor.cs
- DefaultProxySection.cs
- UpdateProgress.cs
- InternalTypeHelper.cs
- PointAnimationUsingPath.cs
- WebServiceErrorEvent.cs
- DefaultValidator.cs
- CuspData.cs
- MessageSecurityOverHttp.cs
- TreeNodeSelectionProcessor.cs
- Drawing.cs
- ForEach.cs
- View.cs
- KnownColorTable.cs
- PersonalizablePropertyEntry.cs
- TextBoxLine.cs
- TrackBarRenderer.cs
- ListenerConnectionModeReader.cs
- ChildChangedEventArgs.cs
- CompressedStack.cs
- ProfileGroupSettingsCollection.cs
- DataContractJsonSerializer.cs
- ProtectedConfiguration.cs
- NamespaceCollection.cs
- CreateParams.cs
- ServiceNameElementCollection.cs
- SimpleFileLog.cs
- Resources.Designer.cs
- Model3DGroup.cs
- UseLicense.cs
- SimpleExpression.cs
- MimeAnyImporter.cs
- WebPartDisplayMode.cs
- ReferentialConstraint.cs
- SweepDirectionValidation.cs
- DatagridviewDisplayedBandsData.cs
- ObjectAnimationBase.cs
- ScrollPattern.cs
- TypefaceMetricsCache.cs
- BamlResourceContent.cs
- ObfuscateAssemblyAttribute.cs
- WinEventWrap.cs
- PropertyMapper.cs
- HttpHandlerActionCollection.cs
- PingOptions.cs
- DataKeyCollection.cs
- XmlWriterDelegator.cs
- InvalidTimeZoneException.cs
- DbProviderFactory.cs
- DescendentsWalker.cs
- WindowsButton.cs
- IDQuery.cs
- CngKeyCreationParameters.cs
- DependencyPropertyHelper.cs
- DataFieldConverter.cs
- LineUtil.cs
- NavigationCommands.cs
- BindingOperations.cs
- DocobjHost.cs
- XmlQueryOutput.cs
- SocketAddress.cs
- FlowDocumentView.cs
- CompilerCollection.cs
- DbParameterHelper.cs
- CriticalHandle.cs
- TypeBuilder.cs
- SeparatorAutomationPeer.cs
- PageThemeParser.cs
- WizardStepBase.cs
- TextCompositionManager.cs
- HtmlTable.cs
- TraceRecord.cs
- XmlAttributeAttribute.cs
- RIPEMD160.cs