Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPRECT.cs / 1305376 / 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
- NativeMethodsCLR.cs
- Registry.cs
- SourceLocationProvider.cs
- SR.Designer.cs
- SHA384Cng.cs
- AttachmentCollection.cs
- FileNotFoundException.cs
- RotateTransform3D.cs
- EntitySetRetriever.cs
- NTAccount.cs
- ThreadStartException.cs
- DNS.cs
- ButtonStandardAdapter.cs
- returneventsaver.cs
- ParameterRetriever.cs
- Literal.cs
- ListViewTableCell.cs
- List.cs
- URIFormatException.cs
- ScriptingWebServicesSectionGroup.cs
- DragEvent.cs
- CheckPair.cs
- ArrayList.cs
- CustomCategoryAttribute.cs
- ChildrenQuery.cs
- RelatedImageListAttribute.cs
- RequestUriProcessor.cs
- SplitContainer.cs
- ContractMapping.cs
- ResourceAttributes.cs
- ResourceKey.cs
- DataExpression.cs
- EastAsianLunisolarCalendar.cs
- JsonFormatGeneratorStatics.cs
- XmlDataSource.cs
- BackgroundWorker.cs
- PrivilegedConfigurationManager.cs
- CounterCreationDataCollection.cs
- WindowPattern.cs
- FirewallWrapper.cs
- TableDesigner.cs
- Encoder.cs
- TransactionManager.cs
- ItemCheckEvent.cs
- CompilerGeneratedAttribute.cs
- Label.cs
- selecteditemcollection.cs
- RegistrySecurity.cs
- FocusTracker.cs
- MissingMemberException.cs
- Cursor.cs
- OciEnlistContext.cs
- DataTable.cs
- MenuCommands.cs
- AsyncSerializedWorker.cs
- SortedList.cs
- Blend.cs
- IPAddress.cs
- CollectionViewGroupRoot.cs
- SQLInt32Storage.cs
- TemplateControlBuildProvider.cs
- XmlSchemaSimpleContentExtension.cs
- TraceHandlerErrorFormatter.cs
- ProxyAttribute.cs
- ChannelPoolSettingsElement.cs
- StreamWriter.cs
- ButtonBaseAutomationPeer.cs
- BindingManagerDataErrorEventArgs.cs
- Assert.cs
- CompareInfo.cs
- RootBuilder.cs
- _FixedSizeReader.cs
- MultipleViewProviderWrapper.cs
- CapabilitiesState.cs
- CharacterMetricsDictionary.cs
- EmptyEnumerator.cs
- ExternalException.cs
- PropertyGridView.cs
- IncrementalReadDecoders.cs
- SettingsAttributeDictionary.cs
- TypeDelegator.cs
- WebPartUserCapability.cs
- SectionVisual.cs
- SymbolMethod.cs
- ExpressionTextBox.xaml.cs
- MimeBasePart.cs
- Delegate.cs
- RadioButtonAutomationPeer.cs
- TextWriterEngine.cs
- ToolStripPanelRow.cs
- SafeCryptContextHandle.cs
- WebBrowserDesigner.cs
- BitmapData.cs
- DotExpr.cs
- LocatorPart.cs
- EndEvent.cs
- DataBindingHandlerAttribute.cs
- COM2FontConverter.cs
- WizardPanelChangingEventArgs.cs
- ObjectItemCollection.cs