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
- Vector3dCollection.cs
- CqlWriter.cs
- HeaderLabel.cs
- ApplicationInterop.cs
- ZipIOFileItemStream.cs
- ThreadAbortException.cs
- DataGridViewComboBoxEditingControl.cs
- ExpressionVisitor.cs
- ComPlusTypeValidator.cs
- FixUpCollection.cs
- DataGridViewMethods.cs
- TPLETWProvider.cs
- SystemFonts.cs
- ValidationEventArgs.cs
- WindowsSlider.cs
- ListViewGroupConverter.cs
- ReaderOutput.cs
- EventNotify.cs
- XmlSerializerSection.cs
- BooleanProjectedSlot.cs
- PeerNameRecord.cs
- SoapEnumAttribute.cs
- UnsafeNativeMethods.cs
- EndpointPerformanceCounters.cs
- NotifyCollectionChangedEventArgs.cs
- Html32TextWriter.cs
- BuildProviderAppliesToAttribute.cs
- ScalarOps.cs
- metadatamappinghashervisitor.cs
- CommonServiceBehaviorElement.cs
- StreamingContext.cs
- ISAPIRuntime.cs
- ResourceKey.cs
- HashSetEqualityComparer.cs
- SharedStatics.cs
- MULTI_QI.cs
- COM2TypeInfoProcessor.cs
- SourceFilter.cs
- GridViewCommandEventArgs.cs
- MeshGeometry3D.cs
- XPathDocumentNavigator.cs
- SchemaNames.cs
- BitmapMetadataEnumerator.cs
- PrivilegedConfigurationManager.cs
- CacheOutputQuery.cs
- MasterPageCodeDomTreeGenerator.cs
- Run.cs
- Point3DKeyFrameCollection.cs
- _CommandStream.cs
- GridViewColumnCollection.cs
- SystemTcpConnection.cs
- ModifiableIteratorCollection.cs
- CustomCredentialPolicy.cs
- Compiler.cs
- TextTrailingCharacterEllipsis.cs
- ExceptionRoutedEventArgs.cs
- InstrumentationTracker.cs
- PropertyCollection.cs
- CompletedAsyncResult.cs
- DataTrigger.cs
- RegisteredHiddenField.cs
- TileModeValidation.cs
- SubpageParagraph.cs
- WebPartTransformerAttribute.cs
- PropertyValueUIItem.cs
- QilVisitor.cs
- AssertFilter.cs
- ToolStripSplitStackLayout.cs
- ResourcesGenerator.cs
- MarshalDirectiveException.cs
- WebBrowserDocumentCompletedEventHandler.cs
- DebugView.cs
- Emitter.cs
- XmlSchemaInclude.cs
- TextTreePropertyUndoUnit.cs
- AxDesigner.cs
- SqlDataSourceCache.cs
- ExitEventArgs.cs
- SqlTriggerContext.cs
- PathFigureCollection.cs
- MethodMessage.cs
- DateBoldEvent.cs
- IndentedWriter.cs
- DebugHandleTracker.cs
- ArrayHelper.cs
- User.cs
- CreatingCookieEventArgs.cs
- GlobalizationAssembly.cs
- DocumentGridContextMenu.cs
- CompositeFontParser.cs
- DataRowChangeEvent.cs
- util.cs
- PathNode.cs
- GridLength.cs
- APCustomTypeDescriptor.cs
- ProfileSettingsCollection.cs
- DocumentAutomationPeer.cs
- PolyBezierSegment.cs
- XmlSchemaAll.cs
- FileLevelControlBuilderAttribute.cs