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
- ApplicationContext.cs
- ProfileInfo.cs
- DirectoryInfo.cs
- StickyNoteAnnotations.cs
- IgnorePropertiesAttribute.cs
- BuildProvider.cs
- CommandBinding.cs
- MetafileHeaderWmf.cs
- Bits.cs
- Connector.xaml.cs
- SingleQueryOperator.cs
- GroupQuery.cs
- HealthMonitoringSection.cs
- References.cs
- path.cs
- util.cs
- PreservationFileWriter.cs
- Thickness.cs
- RangeContentEnumerator.cs
- GuidelineSet.cs
- SQLByteStorage.cs
- ViewPort3D.cs
- SelectedDatesCollection.cs
- Group.cs
- CursorEditor.cs
- Vector.cs
- UserPreferenceChangingEventArgs.cs
- updateconfighost.cs
- PreviewPageInfo.cs
- StreamResourceInfo.cs
- XmlDataSourceNodeDescriptor.cs
- DockPattern.cs
- ListItem.cs
- DbConnectionStringBuilder.cs
- InfoCardX509Validator.cs
- MSAAEventDispatcher.cs
- CodeCatchClauseCollection.cs
- ObjectParameter.cs
- RawKeyboardInputReport.cs
- RSAPKCS1SignatureFormatter.cs
- DrawingAttributes.cs
- TraceInternal.cs
- WebServiceEnumData.cs
- ConfigurationManagerHelperFactory.cs
- XPathBinder.cs
- SoundPlayerAction.cs
- XmlSchemaComplexType.cs
- RadioButtonRenderer.cs
- BindingManagerDataErrorEventArgs.cs
- ResourceManager.cs
- DoWhileDesigner.xaml.cs
- ControlCachePolicy.cs
- X509RecipientCertificateClientElement.cs
- WSSecureConversationDec2005.cs
- XmlSchemaIdentityConstraint.cs
- SessionPageStateSection.cs
- DropShadowEffect.cs
- MailFileEditor.cs
- UserPreferenceChangedEventArgs.cs
- CharEnumerator.cs
- ObjectCacheSettings.cs
- ViewStateException.cs
- ApplicationSecurityManager.cs
- ReservationCollection.cs
- FontCacheUtil.cs
- XmlDataSource.cs
- entitydatasourceentitysetnameconverter.cs
- Table.cs
- GlobalAllocSafeHandle.cs
- Module.cs
- Walker.cs
- RuleAttributes.cs
- ResourceExpressionBuilder.cs
- HashCodeCombiner.cs
- FileFormatException.cs
- CacheForPrimitiveTypes.cs
- ResourceManagerWrapper.cs
- NullableLongAverageAggregationOperator.cs
- ThreadAbortException.cs
- ClientTargetCollection.cs
- DnsEndPoint.cs
- ChannelServices.cs
- MediaTimeline.cs
- SchemaDeclBase.cs
- ExpressionConverter.cs
- BaseAsyncResult.cs
- XmlNotation.cs
- ReadOnlyDictionary.cs
- WindowsFormsHelpers.cs
- Hyperlink.cs
- VSWCFServiceContractGenerator.cs
- HtmlInputSubmit.cs
- FaultCallbackWrapper.cs
- ExpressionBindingsDialog.cs
- TabletCollection.cs
- StringUtil.cs
- DelegateHelpers.Generated.cs
- HyperlinkAutomationPeer.cs
- TemplateAction.cs
- ExpressionValueEditor.cs