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
- DetailsViewInsertedEventArgs.cs
- SimpleBitVector32.cs
- RadioButtonStandardAdapter.cs
- EndPoint.cs
- Add.cs
- TemplatedAdorner.cs
- WindowInteractionStateTracker.cs
- PowerStatus.cs
- AssociationSet.cs
- ToolboxItem.cs
- SqlReferenceCollection.cs
- RealProxy.cs
- ComMethodElement.cs
- RichTextBox.cs
- handlecollector.cs
- RadioButtonAutomationPeer.cs
- XPathBinder.cs
- MissingMethodException.cs
- Command.cs
- LoginUtil.cs
- TiffBitmapDecoder.cs
- FontNamesConverter.cs
- SettingsBindableAttribute.cs
- DrawingContextWalker.cs
- RootDesignerSerializerAttribute.cs
- SystemShuttingDownException.cs
- NotEqual.cs
- TextProperties.cs
- StatusBarPanel.cs
- WebPartUtil.cs
- TTSVoice.cs
- RouteUrlExpressionBuilder.cs
- Rectangle.cs
- ImageAutomationPeer.cs
- GridViewAutoFormat.cs
- SpotLight.cs
- ObjectRef.cs
- DataGridTextBox.cs
- XPathNodeList.cs
- StylusEventArgs.cs
- XmlSchemaCollection.cs
- WorkflowServiceHostFactory.cs
- DataListAutoFormat.cs
- ElementProxy.cs
- LateBoundChannelParameterCollection.cs
- String.cs
- ErrorStyle.cs
- PropertyReferenceSerializer.cs
- CancelEventArgs.cs
- MenuAdapter.cs
- HostedAspNetEnvironment.cs
- ServicePointManagerElement.cs
- SqlError.cs
- UniqueEventHelper.cs
- ResourceContainerWrapper.cs
- TypeConverterHelper.cs
- CmsInterop.cs
- GenerateScriptTypeAttribute.cs
- ClassValidator.cs
- PackagingUtilities.cs
- sqlcontext.cs
- SecurityChannelFactory.cs
- WebPartCatalogAddVerb.cs
- MetadataCache.cs
- StyleHelper.cs
- SchemaConstraints.cs
- TextRangeEditTables.cs
- TaskHelper.cs
- TypedElement.cs
- SmtpCommands.cs
- COM2ICategorizePropertiesHandler.cs
- SafeNativeMemoryHandle.cs
- JavascriptCallbackResponseProperty.cs
- SQLGuid.cs
- MatrixConverter.cs
- CompiledIdentityConstraint.cs
- SqlTrackingService.cs
- CompiledQueryCacheKey.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ExtensionDataReader.cs
- LayeredChannelFactory.cs
- _ProxyChain.cs
- WebPermission.cs
- XPathAncestorIterator.cs
- DataRecordInternal.cs
- QueryContinueDragEventArgs.cs
- PtsHelper.cs
- IPEndPoint.cs
- SingleStorage.cs
- entitydatasourceentitysetnameconverter.cs
- EntityCollection.cs
- PointLightBase.cs
- IntegerValidator.cs
- HwndSourceKeyboardInputSite.cs
- DependencyProperty.cs
- DiscoveryDocumentSearchPattern.cs
- SingleAnimation.cs
- DefaultObjectMappingItemCollection.cs
- PrintEvent.cs
- PriorityQueue.cs