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
- MarkupCompilePass1.cs
- HotSpotCollection.cs
- FramingFormat.cs
- XmlSchemaIdentityConstraint.cs
- DataGridTablesFactory.cs
- SafeNativeMethodsCLR.cs
- XmlExceptionHelper.cs
- ScriptResourceHandler.cs
- BindingGroup.cs
- SimplePropertyEntry.cs
- ToolbarAUtomationPeer.cs
- WindowsScrollBarBits.cs
- KnownBoxes.cs
- TransactionException.cs
- Translator.cs
- HierarchicalDataBoundControl.cs
- StringSource.cs
- Point3DCollectionValueSerializer.cs
- ServiceSecurityAuditBehavior.cs
- DataGridViewCellStyleChangedEventArgs.cs
- MarkerProperties.cs
- OrderPreservingPipeliningSpoolingTask.cs
- ExternalException.cs
- TypeConvertions.cs
- CompositionAdorner.cs
- Propagator.ExtentPlaceholderCreator.cs
- ColorTransform.cs
- CharEnumerator.cs
- ViewPort3D.cs
- TraceListener.cs
- URLMembershipCondition.cs
- AsymmetricKeyExchangeDeformatter.cs
- DataGridComboBoxColumn.cs
- DataTableExtensions.cs
- ConnectionManagementSection.cs
- PasswordBoxAutomationPeer.cs
- PerformanceCounters.cs
- CacheOutputQuery.cs
- MobileComponentEditorPage.cs
- XmlTextReaderImpl.cs
- Floater.cs
- TargetConverter.cs
- PassportIdentity.cs
- CurrentTimeZone.cs
- XmlSerializerSection.cs
- SingleKeyFrameCollection.cs
- MimeMapping.cs
- TransformValueSerializer.cs
- PropertyDescriptorComparer.cs
- FrameworkContentElement.cs
- Int64.cs
- TextMarkerSource.cs
- CurrentChangingEventManager.cs
- Int64Animation.cs
- MenuItemStyleCollection.cs
- WindowsListView.cs
- WebConfigurationManager.cs
- DesignerWidgets.cs
- EncodingInfo.cs
- RegexMatchCollection.cs
- QueryValue.cs
- DataRowCollection.cs
- InstanceCreationEditor.cs
- AggregateNode.cs
- PointAnimationClockResource.cs
- StylusTouchDevice.cs
- MsmqOutputChannel.cs
- ItemCollection.cs
- HttpCachePolicyElement.cs
- InstanceLockTracking.cs
- WindowsSolidBrush.cs
- Int64Converter.cs
- PropertyTabChangedEvent.cs
- AttributeTableBuilder.cs
- _AutoWebProxyScriptHelper.cs
- GetChildSubtree.cs
- PersonalizationProviderCollection.cs
- CustomCategoryAttribute.cs
- CachedBitmap.cs
- ProtectedConfigurationProviderCollection.cs
- XsltException.cs
- MediaContext.cs
- AlternateView.cs
- DataGrid.cs
- BitmapVisualManager.cs
- TcpProcessProtocolHandler.cs
- LogFlushAsyncResult.cs
- TableSectionStyle.cs
- indexingfiltermarshaler.cs
- AnonymousIdentificationModule.cs
- XmlnsCompatibleWithAttribute.cs
- ScrollableControl.cs
- ExceptionUtil.cs
- NonSerializedAttribute.cs
- TypedRowGenerator.cs
- Menu.cs
- ValueTypeFieldReference.cs
- ItemList.cs
- SoapMessage.cs
- AmbientValueAttribute.cs