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
- MembershipSection.cs
- StateWorkerRequest.cs
- Section.cs
- DbProviderManifest.cs
- DBBindings.cs
- DataGridItemEventArgs.cs
- MainMenu.cs
- DataExpression.cs
- Condition.cs
- JsonEnumDataContract.cs
- ToolStripItemEventArgs.cs
- LocatorManager.cs
- SqlConnectionFactory.cs
- DesignerProperties.cs
- ColorContext.cs
- IgnoreFileBuildProvider.cs
- TCPListener.cs
- OutOfMemoryException.cs
- MailDefinition.cs
- Vector.cs
- SuppressMessageAttribute.cs
- FatalException.cs
- VSWCFServiceContractGenerator.cs
- CqlErrorHelper.cs
- PropertyFilterAttribute.cs
- Triplet.cs
- SerializationTrace.cs
- ObjectDataSourceEventArgs.cs
- ScrollEvent.cs
- HttpCapabilitiesEvaluator.cs
- SQLByte.cs
- ellipse.cs
- CompositionAdorner.cs
- Encoding.cs
- handlecollector.cs
- OleDbConnection.cs
- PropertyItem.cs
- StorageComplexPropertyMapping.cs
- NotImplementedException.cs
- EntityContainer.cs
- StreamInfo.cs
- ListViewItem.cs
- StringFormat.cs
- TransformedBitmap.cs
- HideDisabledControlAdapter.cs
- HandleCollector.cs
- SelectionEditingBehavior.cs
- MetafileHeaderWmf.cs
- X509PeerCertificateElement.cs
- RelatedCurrencyManager.cs
- EdmFunctionAttribute.cs
- SQLBinaryStorage.cs
- XmlTextReader.cs
- HttpRequestCacheValidator.cs
- DelegateSerializationHolder.cs
- HttpApplicationFactory.cs
- PropertyDescriptorGridEntry.cs
- PropertyReferenceSerializer.cs
- UIHelper.cs
- X509CertificateCollection.cs
- ResourcesBuildProvider.cs
- ColorAnimation.cs
- XomlCompilerParameters.cs
- ConsoleKeyInfo.cs
- DataAdapter.cs
- DataGridViewComboBoxCell.cs
- ThousandthOfEmRealDoubles.cs
- HttpsChannelListener.cs
- XslUrlEditor.cs
- ListViewEditEventArgs.cs
- ItemList.cs
- TimerEventSubscription.cs
- SplineQuaternionKeyFrame.cs
- Int64KeyFrameCollection.cs
- ContentHostHelper.cs
- Win32PrintDialog.cs
- DataSourceView.cs
- SerializationHelper.cs
- FocusManager.cs
- StoryFragments.cs
- CallSiteOps.cs
- XmlTextWriter.cs
- ListViewHitTestInfo.cs
- connectionpool.cs
- SequentialWorkflowHeaderFooter.cs
- AllMembershipCondition.cs
- TaskFileService.cs
- Debug.cs
- SecureEnvironment.cs
- XpsFilter.cs
- Stylesheet.cs
- Subtree.cs
- AutoCompleteStringCollection.cs
- UriExt.cs
- NativeMethods.cs
- TypeUtils.cs
- DataGridViewButtonCell.cs
- WebServiceTypeData.cs
- Viewport2DVisual3D.cs
- CustomWebEventKey.cs