Code:
/ DotNET / DotNET / 8.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
- DocumentPageViewAutomationPeer.cs
- Globals.cs
- EllipticalNodeOperations.cs
- Msec.cs
- SmtpClient.cs
- TransportChannelListener.cs
- HtmlAnchor.cs
- FixedPageProcessor.cs
- Part.cs
- CodePageUtils.cs
- ModelChangedEventArgsImpl.cs
- GradientStop.cs
- Decorator.cs
- PrinterSettings.cs
- OdbcEnvironmentHandle.cs
- CursorConverter.cs
- SqlNodeAnnotation.cs
- SqlConnectionFactory.cs
- LongValidator.cs
- RemoteX509AsymmetricSecurityKey.cs
- PropertyNames.cs
- IISUnsafeMethods.cs
- MenuItemBindingCollection.cs
- SerializationSectionGroup.cs
- EncryptedType.cs
- TextSegment.cs
- XamlStackWriter.cs
- DynamicResourceExtensionConverter.cs
- VisualBasicExpressionConverter.cs
- Utilities.cs
- ApplicationHost.cs
- SqlClientWrapperSmiStreamChars.cs
- SoapHttpTransportImporter.cs
- ClientData.cs
- DeleteStoreRequest.cs
- HtmlShimManager.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- XmlUrlResolver.cs
- RoleServiceManager.cs
- XmlAnyAttributeAttribute.cs
- FormsIdentity.cs
- VoiceInfo.cs
- ListBase.cs
- ParallelTimeline.cs
- ParserExtension.cs
- WebMessageBodyStyleHelper.cs
- AuthenticationModuleElementCollection.cs
- PageCache.cs
- AppPool.cs
- __Filters.cs
- OleDbConnectionFactory.cs
- InstanceCompleteException.cs
- DataServiceRequestOfT.cs
- EventLogLink.cs
- Keywords.cs
- xsdvalidator.cs
- BitmapMetadata.cs
- DataBinder.cs
- OSFeature.cs
- InvalidComObjectException.cs
- XmlSchemaException.cs
- TrackingMemoryStreamFactory.cs
- TextBox.cs
- SevenBitStream.cs
- AssemblyHash.cs
- updateconfighost.cs
- IDispatchConstantAttribute.cs
- Border.cs
- SHA512Managed.cs
- TreeNodeClickEventArgs.cs
- DocumentEventArgs.cs
- ListControlBoundActionList.cs
- InputScopeAttribute.cs
- CodeVariableReferenceExpression.cs
- TypedServiceChannelBuilder.cs
- DataGridViewControlCollection.cs
- MarkupExtensionParser.cs
- CollectionTypeElement.cs
- RegionInfo.cs
- Wizard.cs
- ExtensionQuery.cs
- TemplateKey.cs
- InternalSafeNativeMethods.cs
- SqlConnectionHelper.cs
- TypeDescriptionProvider.cs
- SHA1Managed.cs
- IteratorFilter.cs
- OrderedDictionary.cs
- PropertyExpression.cs
- regiisutil.cs
- NextPreviousPagerField.cs
- CurrentTimeZone.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- EntitySqlQueryState.cs
- CellTreeNode.cs
- ObjectQuery.cs
- ClockController.cs
- XmlBoundElement.cs
- TransformerInfoCollection.cs
- ValidationPropertyAttribute.cs