Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPRECTF.cs / 1 / GPRECTF.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /*************************************************************************\ * * Copyright (c) 1998-1999, Microsoft Corp. All Rights Reserved. * * Module Name: * * GPRECTF.cpp * * Abstract: * * Native GDI+ floating-point 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 GPRECTF { internal float X; internal float Y; internal float Width; internal float Height; internal GPRECTF(float x, float y, float width, float height) { X = x; Y = y; Width = width; Height = height; } internal GPRECTF(RectangleF rect) { X = rect.X; Y = rect.Y; Width = rect.Width; Height = rect.Height; } internal SizeF SizeF { get { return new SizeF(Width, Height); } } internal RectangleF ToRectangleF() { return new RectangleF(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
- RegexWorker.cs
- TranslateTransform3D.cs
- InstallerTypeAttribute.cs
- VerificationAttribute.cs
- HelpProvider.cs
- XmlWrappingReader.cs
- MessageAction.cs
- ArraySortHelper.cs
- SkipQueryOptionExpression.cs
- RoutingExtension.cs
- LinkUtilities.cs
- VirtualizedItemProviderWrapper.cs
- NamedPipeChannelFactory.cs
- ColorMatrix.cs
- DataGridViewRowEventArgs.cs
- TextSelectionHelper.cs
- cookiecontainer.cs
- WsdlBuildProvider.cs
- ColumnWidthChangingEvent.cs
- AuthenticationModuleElementCollection.cs
- BuiltInPermissionSets.cs
- PropertyFilterAttribute.cs
- TemplatedWizardStep.cs
- GlyphElement.cs
- SurrogateSelector.cs
- WebPartCancelEventArgs.cs
- ContainerUIElement3D.cs
- Image.cs
- Latin1Encoding.cs
- PolyLineSegment.cs
- Deflater.cs
- PointIndependentAnimationStorage.cs
- ArcSegment.cs
- WorkflowServiceHostFactory.cs
- SqlClientFactory.cs
- TextTreeExtractElementUndoUnit.cs
- ProcessingInstructionAction.cs
- DrawToolTipEventArgs.cs
- AQNBuilder.cs
- BaseCollection.cs
- XmlTypeMapping.cs
- ExceptionList.cs
- IndexerHelper.cs
- ResourceDescriptionAttribute.cs
- DependencyPropertyValueSerializer.cs
- Polygon.cs
- IconEditor.cs
- CodeMemberMethod.cs
- ToolboxDataAttribute.cs
- ModelUIElement3D.cs
- _Rfc2616CacheValidators.cs
- URI.cs
- XPathParser.cs
- Attribute.cs
- TimeoutException.cs
- COM2IDispatchConverter.cs
- ByteStream.cs
- IPHostEntry.cs
- ScrollPatternIdentifiers.cs
- XPathDocumentIterator.cs
- DbConnectionStringBuilder.cs
- X509CertificateRecipientServiceCredential.cs
- WebContext.cs
- UserControlParser.cs
- GridViewUpdatedEventArgs.cs
- CodeTypeDelegate.cs
- DivideByZeroException.cs
- DataGridViewColumnCollectionEditor.cs
- ParentUndoUnit.cs
- Identifier.cs
- BitmapData.cs
- KeyInstance.cs
- NamespaceExpr.cs
- CodeSnippetTypeMember.cs
- SafeFileHandle.cs
- IFormattable.cs
- XmlSerializerFactory.cs
- ZipIOCentralDirectoryBlock.cs
- DrawListViewSubItemEventArgs.cs
- UnsafeNativeMethodsCLR.cs
- DataSourceGeneratorException.cs
- EventLogTraceListener.cs
- HttpListenerRequest.cs
- LineMetrics.cs
- Selector.cs
- MimeFormImporter.cs
- GridViewDeleteEventArgs.cs
- EntityContainer.cs
- XmlReflectionImporter.cs
- DataGridDesigner.cs
- CollectionDataContract.cs
- MediaElementAutomationPeer.cs
- Asn1IntegerConverter.cs
- OracleFactory.cs
- SimpleBitVector32.cs
- DesignerLoader.cs
- SafePEFileHandle.cs
- RequestCacheManager.cs
- FixedDocumentPaginator.cs
- InternalMappingException.cs