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
- PolyBezierSegment.cs
- Transform3D.cs
- BevelBitmapEffect.cs
- ListViewAutomationPeer.cs
- SortableBindingList.cs
- AttachmentCollection.cs
- FontCacheUtil.cs
- PreviewPrintController.cs
- XmlnsDictionary.cs
- BitmapScalingModeValidation.cs
- SafeRightsManagementHandle.cs
- HijriCalendar.cs
- KnownTypesProvider.cs
- MediaTimeline.cs
- DataServiceHostFactory.cs
- XmlAttributeAttribute.cs
- AnimatedTypeHelpers.cs
- UriParserTemplates.cs
- WebPartConnection.cs
- StructuralType.cs
- TraceLevelHelper.cs
- CompilationUtil.cs
- TextBoxLine.cs
- ConfigurationSectionGroupCollection.cs
- DBConcurrencyException.cs
- CryptographicAttribute.cs
- CodeAssignStatement.cs
- Misc.cs
- HybridDictionary.cs
- RawKeyboardInputReport.cs
- GenericEnumerator.cs
- ActiveXHelper.cs
- SizeConverter.cs
- DetailsViewUpdatedEventArgs.cs
- ScriptHandlerFactory.cs
- TaskResultSetter.cs
- EventsTab.cs
- ScriptingRoleServiceSection.cs
- RootAction.cs
- Shape.cs
- TextTreeUndo.cs
- SchemaTableColumn.cs
- ReadWriteSpinLock.cs
- TextTreeRootTextBlock.cs
- EventEntry.cs
- ScrollBar.cs
- ColorConverter.cs
- MenuStrip.cs
- EndpointNotFoundException.cs
- CheckBoxPopupAdapter.cs
- BitConverter.cs
- ContactManager.cs
- TypeLoadException.cs
- ComplexBindingPropertiesAttribute.cs
- DoubleIndependentAnimationStorage.cs
- DecoderNLS.cs
- HighlightComponent.cs
- HandlerFactoryCache.cs
- CompareValidator.cs
- ClassGenerator.cs
- AccessedThroughPropertyAttribute.cs
- Pkcs7Recipient.cs
- StringBlob.cs
- DbParameterCollection.cs
- AbstractSvcMapFileLoader.cs
- LayoutEditorPart.cs
- Ipv6Element.cs
- Bits.cs
- MemberDescriptor.cs
- DataGridSortCommandEventArgs.cs
- WindowsToolbarAsMenu.cs
- ErasingStroke.cs
- WmiEventSink.cs
- BuildManagerHost.cs
- DynamicAttribute.cs
- ParsedRoute.cs
- ChannelSinkStacks.cs
- BaseValidatorDesigner.cs
- BindingBase.cs
- EnumMember.cs
- TdsParserStateObject.cs
- ListViewInsertionMark.cs
- SolidColorBrush.cs
- MultiTouchSystemGestureLogic.cs
- Char.cs
- PreDigestedSignedInfo.cs
- ProcessStartInfo.cs
- mansign.cs
- LazyTextWriterCreator.cs
- HtmlElementEventArgs.cs
- MetadataItemEmitter.cs
- HtmlWindow.cs
- XmlTextReaderImpl.cs
- SafeLibraryHandle.cs
- StyleConverter.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- NullableDecimalMinMaxAggregationOperator.cs
- EditBehavior.cs
- XPathParser.cs
- CheckBoxList.cs