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
- BooleanSwitch.cs
- ListChangedEventArgs.cs
- Gdiplus.cs
- TranslateTransform.cs
- Relationship.cs
- CompositeTypefaceMetrics.cs
- RichTextBox.cs
- CheckBoxPopupAdapter.cs
- Wrapper.cs
- SortedList.cs
- DocumentPaginator.cs
- SafeMarshalContext.cs
- UnsafeNativeMethodsPenimc.cs
- AspProxy.cs
- _SafeNetHandles.cs
- PrtTicket_Base.cs
- ChangePassword.cs
- ImageMapEventArgs.cs
- TransformerInfo.cs
- ICspAsymmetricAlgorithm.cs
- VisualTreeUtils.cs
- XmlTextReaderImpl.cs
- StrongTypingException.cs
- SamlAuthorizationDecisionClaimResource.cs
- OwnerDrawPropertyBag.cs
- GenericTypeParameterConverter.cs
- HtmlLink.cs
- NonValidatingSecurityTokenAuthenticator.cs
- WindowsHyperlink.cs
- RestHandler.cs
- SqlClientWrapperSmiStream.cs
- SerialReceived.cs
- CultureInfoConverter.cs
- BinaryObjectInfo.cs
- NativeMethods.cs
- ComPlusDiagnosticTraceSchemas.cs
- LookupNode.cs
- MimeTypePropertyAttribute.cs
- Panel.cs
- PerformanceCounterCategory.cs
- CachedPathData.cs
- Int64KeyFrameCollection.cs
- ToolboxComponentsCreatedEventArgs.cs
- WindowsComboBox.cs
- SafeCoTaskMem.cs
- MultiSelectRootGridEntry.cs
- DesignerActionItem.cs
- ColorDialog.cs
- __Error.cs
- ColumnPropertiesGroup.cs
- DetailsViewCommandEventArgs.cs
- InteropAutomationProvider.cs
- ReadContentAsBinaryHelper.cs
- SortFieldComparer.cs
- HttpCookieCollection.cs
- SerializerDescriptor.cs
- RectangleHotSpot.cs
- HitTestWithPointDrawingContextWalker.cs
- MenuEventArgs.cs
- DriveInfo.cs
- PageContent.cs
- WindowsRichEdit.cs
- SiteMapHierarchicalDataSourceView.cs
- __Filters.cs
- Perspective.cs
- AccessViolationException.cs
- FileInfo.cs
- DoubleAnimationClockResource.cs
- DeploymentSectionCache.cs
- Metadata.cs
- control.ime.cs
- Journal.cs
- DbConnectionFactory.cs
- PointAnimationUsingPath.cs
- XmlSubtreeReader.cs
- ObjectQueryExecutionPlan.cs
- CroppedBitmap.cs
- CompositeKey.cs
- SecurityDescriptor.cs
- LayoutEvent.cs
- SourceElementsCollection.cs
- HighContrastHelper.cs
- InputLanguageCollection.cs
- ShapingWorkspace.cs
- CustomCategoryAttribute.cs
- SymmetricKeyWrap.cs
- SqlConnectionHelper.cs
- FormsAuthenticationCredentials.cs
- DBCSCodePageEncoding.cs
- dtdvalidator.cs
- WSHttpSecurityElement.cs
- RuntimeUtils.cs
- ParagraphVisual.cs
- ConnectivityStatus.cs
- TableColumn.cs
- ControlCachePolicy.cs
- XslException.cs
- AutomationAttributeInfo.cs
- UIElementPropertyUndoUnit.cs
- ConfigurationLocation.cs