Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ImageMapEventArgs.cs
- WriteFileContext.cs
- ProcessModelInfo.cs
- EditingCommands.cs
- CompareValidator.cs
- DashStyle.cs
- selecteditemcollection.cs
- WebControl.cs
- SqlInternalConnection.cs
- XamlBrushSerializer.cs
- DecoderNLS.cs
- FixedFlowMap.cs
- ProjectionAnalyzer.cs
- XmlValidatingReader.cs
- Soap.cs
- TraceContextEventArgs.cs
- DataBinder.cs
- DecimalStorage.cs
- Stack.cs
- MatchAttribute.cs
- SystemParameters.cs
- SapiAttributeParser.cs
- HostedImpersonationContext.cs
- EditableRegion.cs
- Misc.cs
- RIPEMD160Managed.cs
- NonClientArea.cs
- TableLayoutColumnStyleCollection.cs
- GPPOINT.cs
- FormViewDeleteEventArgs.cs
- Int32Collection.cs
- OLEDB_Enum.cs
- _NTAuthentication.cs
- MetadataWorkspace.cs
- AutomationElementIdentifiers.cs
- ToRequest.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- WebZone.cs
- XmlNullResolver.cs
- XmlHierarchicalEnumerable.cs
- DataListItemEventArgs.cs
- XmlEventCache.cs
- ImplicitInputBrush.cs
- XsdDataContractExporter.cs
- MobileContainerDesigner.cs
- NotifyInputEventArgs.cs
- ProxyElement.cs
- SystemIcmpV4Statistics.cs
- SafeFileMappingHandle.cs
- SqlConnection.cs
- OdbcConnectionHandle.cs
- XmlHierarchyData.cs
- PointCollection.cs
- xml.cs
- CornerRadiusConverter.cs
- RegexStringValidator.cs
- ByteBufferPool.cs
- DataSourceCacheDurationConverter.cs
- TryCatchDesigner.xaml.cs
- HttpStaticObjectsCollectionBase.cs
- TrimSurroundingWhitespaceAttribute.cs
- GridViewRowCollection.cs
- Int16.cs
- PageWrapper.cs
- PolicyImporterElementCollection.cs
- SettingsAttributes.cs
- WindowProviderWrapper.cs
- TemplateColumn.cs
- Control.cs
- SqlGenerator.cs
- Viewport3DVisual.cs
- ValueProviderWrapper.cs
- ToolStripItemImageRenderEventArgs.cs
- WindowsPen.cs
- XsdBuildProvider.cs
- PackagePart.cs
- BaseResourcesBuildProvider.cs
- DictionarySectionHandler.cs
- BamlRecordReader.cs
- AuthStoreRoleProvider.cs
- RegexWorker.cs
- DisplayMemberTemplateSelector.cs
- TraceContextRecord.cs
- HostingEnvironmentSection.cs
- QilGenerator.cs
- DropAnimation.xaml.cs
- Geometry3D.cs
- WebPartAuthorizationEventArgs.cs
- PixelShader.cs
- XPathNodeList.cs
- _KerberosClient.cs
- SimpleTableProvider.cs
- GridItemCollection.cs
- FilteredDataSetHelper.cs
- SafePEFileHandle.cs
- HTMLTagNameToTypeMapper.cs
- Translator.cs
- ServiceOperation.cs
- FaultReasonText.cs
- ProcessHostServerConfig.cs