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
- CustomLineCap.cs
- ResourcesBuildProvider.cs
- VersionedStreamOwner.cs
- XmlSchemaImport.cs
- IndentedWriter.cs
- HttpWebRequest.cs
- AssemblyResourceLoader.cs
- MouseActionValueSerializer.cs
- PersonalizableTypeEntry.cs
- WebEvents.cs
- DBPropSet.cs
- EntityDataSourceContainerNameConverter.cs
- XmlTextAttribute.cs
- TextDecorationCollection.cs
- EndPoint.cs
- SessionStateSection.cs
- TextTreeRootNode.cs
- SessionEndingEventArgs.cs
- Transform.cs
- EntityWithKeyStrategy.cs
- PartManifestEntry.cs
- SQLGuid.cs
- ThaiBuddhistCalendar.cs
- AffineTransform3D.cs
- PeerNearMe.cs
- SafeFileMapViewHandle.cs
- HttpCookiesSection.cs
- GenericAuthenticationEventArgs.cs
- AbstractExpressions.cs
- NameTable.cs
- Variable.cs
- Helpers.cs
- StringAttributeCollection.cs
- LookupBindingPropertiesAttribute.cs
- TextEditorMouse.cs
- SchemaImporterExtensionsSection.cs
- SQLByte.cs
- AnnotationComponentChooser.cs
- ToolStripDropDownButton.cs
- UTF7Encoding.cs
- UpdateCompiler.cs
- IIS7WorkerRequest.cs
- UnionCqlBlock.cs
- DBAsyncResult.cs
- TextServicesProperty.cs
- DockAndAnchorLayout.cs
- CalculatedColumn.cs
- OleDbParameter.cs
- ProviderException.cs
- VisualStyleRenderer.cs
- CriticalHandle.cs
- ProcessModuleCollection.cs
- SmiEventStream.cs
- HighlightComponent.cs
- WebPartZone.cs
- validationstate.cs
- WorkflowApplicationIdleEventArgs.cs
- FrameworkElementFactoryMarkupObject.cs
- smtppermission.cs
- TextCharacters.cs
- UpDownBase.cs
- Point3DKeyFrameCollection.cs
- xsdvalidator.cs
- TracingConnectionListener.cs
- PointUtil.cs
- Compiler.cs
- AsymmetricSecurityProtocol.cs
- SetStoryboardSpeedRatio.cs
- SqlFunctions.cs
- VisualStateManager.cs
- AdCreatedEventArgs.cs
- XmlSchemaIdentityConstraint.cs
- ScrollProviderWrapper.cs
- SemaphoreSecurity.cs
- TableStyle.cs
- BindingNavigator.cs
- IntegrationExceptionEventArgs.cs
- StylusButtonCollection.cs
- DesignerImageAdapter.cs
- SHA1CryptoServiceProvider.cs
- ServiceModelStringsVersion1.cs
- MutableAssemblyCacheEntry.cs
- AuthenticationModulesSection.cs
- JsonSerializer.cs
- DataRecordObjectView.cs
- ClientOptions.cs
- Paragraph.cs
- WrappedIUnknown.cs
- DocumentViewerConstants.cs
- AssemblyAttributes.cs
- ShutDownListener.cs
- SkipQueryOptionExpression.cs
- ProcessHostConfigUtils.cs
- DataSourceCacheDurationConverter.cs
- RadioButtonBaseAdapter.cs
- EpmContentSerializerBase.cs
- OutputBuffer.cs
- SectionInput.cs
- GuidelineSet.cs
- ActivityExecutorOperation.cs