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
- XmlSchemaChoice.cs
- ToolboxComponentsCreatingEventArgs.cs
- _FtpControlStream.cs
- PtsCache.cs
- PolyLineSegmentFigureLogic.cs
- XPathArrayIterator.cs
- PageCatalogPart.cs
- TemplateColumn.cs
- RequiredAttributeAttribute.cs
- DisableDpiAwarenessAttribute.cs
- SliderAutomationPeer.cs
- WsdlImporter.cs
- DataBindingHandlerAttribute.cs
- DataTableReaderListener.cs
- PathFigure.cs
- isolationinterop.cs
- srgsitem.cs
- GeometryCollection.cs
- WindowsRichEdit.cs
- sqlstateclientmanager.cs
- SponsorHelper.cs
- WhitespaceReader.cs
- LeftCellWrapper.cs
- HMACSHA1.cs
- Point3DCollectionValueSerializer.cs
- ProjectionCamera.cs
- CompareInfo.cs
- DataException.cs
- ExternalException.cs
- DataTable.cs
- querybuilder.cs
- localization.cs
- AssemblyGen.cs
- ElementAction.cs
- DateTimeValueSerializer.cs
- TextDataBindingHandler.cs
- FreezableOperations.cs
- Point3DIndependentAnimationStorage.cs
- XmlReader.cs
- XmlCharacterData.cs
- TypeDescriptorFilterService.cs
- SuppressMergeCheckAttribute.cs
- ScrollPattern.cs
- SqlCacheDependencyDatabaseCollection.cs
- XmlSchemaComplexType.cs
- ISAPIApplicationHost.cs
- ReaderOutput.cs
- XmlSchemaValidationException.cs
- UserControl.cs
- StyleBamlRecordReader.cs
- UnsafeNativeMethods.cs
- HybridDictionary.cs
- XPathNavigator.cs
- ResolveRequestResponseAsyncResult.cs
- UnsafeNativeMethodsPenimc.cs
- BinaryWriter.cs
- SoapTypeAttribute.cs
- ServiceDeploymentInfo.cs
- ParallelLoopState.cs
- CharacterMetricsDictionary.cs
- StateFinalizationDesigner.cs
- PolicyChain.cs
- NativeCppClassAttribute.cs
- HtmlHead.cs
- DataSpaceManager.cs
- ObjectConverter.cs
- TimeSpan.cs
- ContentPosition.cs
- ReaderWriterLock.cs
- StubHelpers.cs
- FormsAuthenticationUser.cs
- InputLangChangeRequestEvent.cs
- XPathNode.cs
- VirtualizedCellInfoCollection.cs
- AlternateViewCollection.cs
- TableRowCollection.cs
- StateMachine.cs
- Margins.cs
- SqlStream.cs
- EventlogProvider.cs
- NativeMethods.cs
- ReturnEventArgs.cs
- ListViewSelectEventArgs.cs
- HttpServerUtilityWrapper.cs
- SourceFileBuildProvider.cs
- PanelContainerDesigner.cs
- HostProtectionPermission.cs
- ApplicationFileParser.cs
- GroupByExpressionRewriter.cs
- PenContext.cs
- DescendantQuery.cs
- ComponentConverter.cs
- Table.cs
- EdgeProfileValidation.cs
- DataRelation.cs
- GridItemPatternIdentifiers.cs
- BitVector32.cs
- SHA1CryptoServiceProvider.cs
- CodeDirectoryCompiler.cs
- MailWebEventProvider.cs