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
- Int32RectConverter.cs
- StringInfo.cs
- TemplatedMailWebEventProvider.cs
- AttachedPropertyBrowsableAttribute.cs
- EnumerableWrapperWeakToStrong.cs
- PageBuildProvider.cs
- ExpressionBuilderContext.cs
- Merger.cs
- ReadOnlyObservableCollection.cs
- XmlNamedNodeMap.cs
- DataControlCommands.cs
- MultiDataTrigger.cs
- ListBoxAutomationPeer.cs
- PanelDesigner.cs
- Graphics.cs
- TextBoxLine.cs
- ErrorWrapper.cs
- StringStorage.cs
- WpfWebRequestHelper.cs
- SystemIPGlobalStatistics.cs
- TaskFormBase.cs
- WebServiceEndpoint.cs
- TraceSection.cs
- GetImportFileNameRequest.cs
- WebPartMovingEventArgs.cs
- Point3DAnimation.cs
- EdmProperty.cs
- cookiecontainer.cs
- NumberFormatInfo.cs
- WebColorConverter.cs
- XmlImplementation.cs
- ServiceOperationHelpers.cs
- DockEditor.cs
- EventListenerClientSide.cs
- WindowsScrollBarBits.cs
- ProgressBar.cs
- DataControlField.cs
- CTreeGenerator.cs
- SoapCommonClasses.cs
- DoubleKeyFrameCollection.cs
- SpeakProgressEventArgs.cs
- PackagePartCollection.cs
- TextEndOfLine.cs
- Aggregates.cs
- ToolStripProgressBar.cs
- FindProgressChangedEventArgs.cs
- ClientCredentialsElement.cs
- TextRangeAdaptor.cs
- BoundColumn.cs
- X509ChainPolicy.cs
- RectConverter.cs
- EventLogTraceListener.cs
- figurelengthconverter.cs
- UniqueTransportManagerRegistration.cs
- Subordinate.cs
- EventDescriptor.cs
- precedingsibling.cs
- HttpResponseWrapper.cs
- ListViewDeleteEventArgs.cs
- BitmapPalette.cs
- StylusPointPropertyInfoDefaults.cs
- IndexedEnumerable.cs
- UInt64.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- CqlParserHelpers.cs
- ItemType.cs
- invalidudtexception.cs
- HwndSourceKeyboardInputSite.cs
- WorkflowItemPresenter.cs
- UriExt.cs
- StateMachineWorkflow.cs
- _StreamFramer.cs
- ReflectionUtil.cs
- CheckBoxStandardAdapter.cs
- FixedTextContainer.cs
- WorkflowInstanceQuery.cs
- ListViewGroupItemCollection.cs
- SemanticValue.cs
- EncodingInfo.cs
- BuildProviderCollection.cs
- DetailsViewCommandEventArgs.cs
- PropertyConverter.cs
- StorageMappingItemLoader.cs
- CellPartitioner.cs
- FormsIdentity.cs
- ClientTargetCollection.cs
- DocumentPaginator.cs
- ListChangedEventArgs.cs
- Lasso.cs
- Int32CAMarshaler.cs
- ParseChildrenAsPropertiesAttribute.cs
- ImageSourceValueSerializer.cs
- MimeObjectFactory.cs
- VariableExpressionConverter.cs
- EmissiveMaterial.cs
- XsltQilFactory.cs
- SystemKeyConverter.cs
- SlipBehavior.cs
- ParseElementCollection.cs
- XPathDocumentNavigator.cs