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
- TextParaClient.cs
- ValidatedControlConverter.cs
- ParameterCollection.cs
- unsafenativemethodstextservices.cs
- QuotedStringFormatReader.cs
- BlurBitmapEffect.cs
- DataGridViewCellStyle.cs
- UnsafeNativeMethods.cs
- CompareInfo.cs
- SqlEnums.cs
- ConstrainedDataObject.cs
- PrivilegeNotHeldException.cs
- MappingModelBuildProvider.cs
- DBNull.cs
- RSAOAEPKeyExchangeFormatter.cs
- MemberRelationshipService.cs
- BindableAttribute.cs
- RelatedImageListAttribute.cs
- CompatibleComparer.cs
- CAGDesigner.cs
- Screen.cs
- ImageSource.cs
- TypeExtensions.cs
- HiddenFieldPageStatePersister.cs
- PropertyRecord.cs
- SkewTransform.cs
- dtdvalidator.cs
- XamlToRtfParser.cs
- EventRoute.cs
- HandleRef.cs
- DeleteHelper.cs
- ValidateNames.cs
- XPathDocumentBuilder.cs
- HelpEvent.cs
- Figure.cs
- MetabaseServerConfig.cs
- InputLanguage.cs
- TargetConverter.cs
- ModelChangedEventArgsImpl.cs
- SiteMapPath.cs
- SoapSchemaMember.cs
- Int32EqualityComparer.cs
- OverflowException.cs
- SecUtil.cs
- DigitShape.cs
- SqlCaseSimplifier.cs
- TabControlDesigner.cs
- Substitution.cs
- FontFaceLayoutInfo.cs
- PackageStore.cs
- FileUtil.cs
- ImportDesigner.xaml.cs
- Point3D.cs
- WebPartsSection.cs
- UnionCodeGroup.cs
- XmlCharCheckingWriter.cs
- MemberListBinding.cs
- EmptyStringExpandableObjectConverter.cs
- DoubleLinkList.cs
- MetadataItem_Static.cs
- bindurihelper.cs
- TextDecoration.cs
- IProvider.cs
- ObjectReaderCompiler.cs
- Button.cs
- PageBuildProvider.cs
- UDPClient.cs
- NamespaceEmitter.cs
- Preprocessor.cs
- ToolStripContentPanelDesigner.cs
- HttpModuleCollection.cs
- BypassElement.cs
- RowTypeElement.cs
- DataGridViewAccessibleObject.cs
- DragCompletedEventArgs.cs
- WindowsRichEditRange.cs
- PackageFilter.cs
- entityreference_tresulttype.cs
- AssemblyCache.cs
- SQLResource.cs
- MulticastDelegate.cs
- LastQueryOperator.cs
- WindowsSspiNegotiation.cs
- AutoGeneratedFieldProperties.cs
- TraceHwndHost.cs
- WebPartDisplayModeCancelEventArgs.cs
- _ProxyRegBlob.cs
- _ListenerAsyncResult.cs
- EdmError.cs
- FileSecurity.cs
- GraphicsPathIterator.cs
- Quaternion.cs
- MessageEncodingBindingElementImporter.cs
- OrderedDictionary.cs
- RenderData.cs
- TrustSection.cs
- WebPartConnectionsEventArgs.cs
- KeySpline.cs
- Configuration.cs
- XsltSettings.cs