Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPRECT.cs / 1 / GPRECT.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /*************************************************************************\ * * Copyright (c) 1998-1999, Microsoft Corp. All Rights Reserved. * * Module Name: * * GPRECT.cpp * * Abstract: * * Native GDI+ integer coordinate rectangle structure. * * Revision History: * * 12/14/1998 davidx * Created it. * \**************************************************************************/ 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataPagerFieldItem.cs
- FontSizeConverter.cs
- ThicknessConverter.cs
- TypeRefElement.cs
- LinkedDataMemberFieldEditor.cs
- UpdateProgress.cs
- _ConnectStream.cs
- StrokeSerializer.cs
- DataReceivedEventArgs.cs
- ExeConfigurationFileMap.cs
- XmlComment.cs
- RowCache.cs
- ByeOperation11AsyncResult.cs
- OleServicesContext.cs
- ManagedFilter.cs
- ServiceThrottlingElement.cs
- ConfigurationElement.cs
- ResXResourceReader.cs
- TemplateControlCodeDomTreeGenerator.cs
- WebSysDisplayNameAttribute.cs
- ReadOnlyState.cs
- InheritanceUI.cs
- Rotation3DKeyFrameCollection.cs
- CachedCompositeFamily.cs
- SqlWebEventProvider.cs
- _TimerThread.cs
- ToolConsole.cs
- LayeredChannelFactory.cs
- GridViewCancelEditEventArgs.cs
- TextEditorThreadLocalStore.cs
- isolationinterop.cs
- ServiceManager.cs
- XPathDocumentBuilder.cs
- hresults.cs
- WebCategoryAttribute.cs
- IsolatedStorageFilePermission.cs
- AsymmetricSignatureFormatter.cs
- LateBoundBitmapDecoder.cs
- MsmqProcessProtocolHandler.cs
- DependencyPropertyDescriptor.cs
- HMAC.cs
- WSTrustDec2005.cs
- CaseInsensitiveComparer.cs
- GridEntryCollection.cs
- DockPanel.cs
- MessageAction.cs
- LambdaCompiler.Generated.cs
- GeometryGroup.cs
- StateFinalizationDesigner.cs
- SuppressIldasmAttribute.cs
- KeySpline.cs
- NodeFunctions.cs
- SessionEndingEventArgs.cs
- RangeBase.cs
- ZoneLinkButton.cs
- XmlSchemaObjectCollection.cs
- PointAnimationBase.cs
- MainMenu.cs
- BufferAllocator.cs
- PauseStoryboard.cs
- cookiecontainer.cs
- Switch.cs
- EventWaitHandleSecurity.cs
- RegistrationServices.cs
- UnhandledExceptionEventArgs.cs
- DesignerAttribute.cs
- ObjectHandle.cs
- Environment.cs
- WindowsRegion.cs
- ValueTypeFixupInfo.cs
- GridViewCancelEditEventArgs.cs
- GridViewAutoFormat.cs
- SafeCoTaskMem.cs
- BamlResourceDeserializer.cs
- SuppressIldasmAttribute.cs
- DataGridCheckBoxColumn.cs
- CodeTypeDeclarationCollection.cs
- SimpleLine.cs
- XsdDataContractImporter.cs
- NavigationPropertyAccessor.cs
- WebUtil.cs
- TextChange.cs
- SharedUtils.cs
- GlobalizationSection.cs
- PeerTransportListenAddressValidatorAttribute.cs
- InitializationEventAttribute.cs
- _PooledStream.cs
- PrimitiveXmlSerializers.cs
- BuildProvidersCompiler.cs
- util.cs
- CodeAttributeArgument.cs
- COM2ExtendedUITypeEditor.cs
- ViewGenerator.cs
- RegistrySecurity.cs
- Touch.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ColumnReorderedEventArgs.cs
- PolygonHotSpot.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- SqlParameterCollection.cs