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
- ScrollableControl.cs
- ConfigurationSectionGroup.cs
- HtmlHistory.cs
- PowerStatus.cs
- DivideByZeroException.cs
- XPathChildIterator.cs
- SynchronousChannel.cs
- DesignOnlyAttribute.cs
- LogoValidationException.cs
- DiagnosticTraceSchemas.cs
- SerTrace.cs
- DataBoundControl.cs
- ResourceSetExpression.cs
- Parser.cs
- DataDocumentXPathNavigator.cs
- EdmEntityTypeAttribute.cs
- DbParameterHelper.cs
- SqlParameter.cs
- IsolatedStorageException.cs
- RegionInfo.cs
- XmlAttributeProperties.cs
- LoginView.cs
- CollectionDataContract.cs
- System.Data_BID.cs
- ColorPalette.cs
- IconHelper.cs
- NameScopePropertyAttribute.cs
- ReadOnlyNameValueCollection.cs
- ObjectDataSourceSelectingEventArgs.cs
- TreeBuilder.cs
- WsrmMessageInfo.cs
- PeerObject.cs
- NativeMethods.cs
- BufferBuilder.cs
- NegotiationTokenAuthenticator.cs
- GridViewRowPresenter.cs
- ProfileService.cs
- SqlRemoveConstantOrderBy.cs
- TextProperties.cs
- EnumUnknown.cs
- StateRuntime.cs
- XmlReader.cs
- CancelEventArgs.cs
- ZipIOCentralDirectoryFileHeader.cs
- XmlArrayItemAttribute.cs
- Stack.cs
- Attributes.cs
- ProcessRequestAsyncResult.cs
- UnsafeNativeMethods.cs
- DataSourceXmlSubItemAttribute.cs
- KeyInstance.cs
- OperationCanceledException.cs
- XhtmlConformanceSection.cs
- DataObjectAttribute.cs
- InstanceDataCollection.cs
- ConnectionManagementElementCollection.cs
- ThreadStartException.cs
- StructuredTypeEmitter.cs
- BaseParaClient.cs
- Geometry.cs
- HandlerBase.cs
- _AutoWebProxyScriptHelper.cs
- ProcessHostMapPath.cs
- ClientType.cs
- CallbackTimeoutsElement.cs
- DataColumnMapping.cs
- HttpRuntime.cs
- ParserHooks.cs
- WindowsToolbarItemAsMenuItem.cs
- QuaternionKeyFrameCollection.cs
- MetadataPropertyCollection.cs
- Knowncolors.cs
- TrustManagerMoreInformation.cs
- UnionQueryOperator.cs
- SoapFormatter.cs
- WebPartDescriptionCollection.cs
- DBAsyncResult.cs
- DragCompletedEventArgs.cs
- ScriptControl.cs
- SessionParameter.cs
- ListViewPagedDataSource.cs
- PropertyStore.cs
- EncryptedKey.cs
- TerminateWorkflow.cs
- UnlockInstanceAsyncResult.cs
- ListControl.cs
- KoreanLunisolarCalendar.cs
- IISUnsafeMethods.cs
- FormsAuthenticationCredentials.cs
- Environment.cs
- DynamicPropertyReader.cs
- ManagementQuery.cs
- PassportAuthenticationModule.cs
- ToolboxDataAttribute.cs
- CustomLineCap.cs
- ISO2022Encoding.cs
- CodeNamespaceImportCollection.cs
- ArgIterator.cs
- HandlerBase.cs
- Pen.cs