Code:
/ DotNET / DotNET / 8.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
- BamlReader.cs
- EmptyStringExpandableObjectConverter.cs
- ParamArrayAttribute.cs
- FileDataSourceCache.cs
- MultipartContentParser.cs
- WeakReference.cs
- NativeMethods.cs
- StylusTip.cs
- FlatButtonAppearance.cs
- LinkTarget.cs
- RedBlackList.cs
- CacheForPrimitiveTypes.cs
- Matrix.cs
- SmtpNetworkElement.cs
- CuspData.cs
- DateTimePicker.cs
- DetailsViewPageEventArgs.cs
- KeyValuePair.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- PathTooLongException.cs
- WebUtil.cs
- FamilyTypefaceCollection.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- AuthenticationManager.cs
- ImportContext.cs
- SplitterCancelEvent.cs
- PropertyPathWorker.cs
- NavigationExpr.cs
- ComponentChangingEvent.cs
- HealthMonitoringSectionHelper.cs
- XmlNamespaceMappingCollection.cs
- CompilerResults.cs
- Timeline.cs
- TagMapInfo.cs
- DataQuery.cs
- Filter.cs
- AsyncStreamReader.cs
- AppSettingsReader.cs
- ComponentEvent.cs
- MouseCaptureWithinProperty.cs
- ToolZone.cs
- AddInToken.cs
- DocumentReferenceCollection.cs
- PagesSection.cs
- DesignerActionGlyph.cs
- Int16.cs
- ThicknessKeyFrameCollection.cs
- DefaultValueAttribute.cs
- GACMembershipCondition.cs
- DataGridBoolColumn.cs
- StreamReader.cs
- RbTree.cs
- DataColumnPropertyDescriptor.cs
- HtmlLink.cs
- MemberPathMap.cs
- NetMsmqSecurityElement.cs
- CapabilitiesPattern.cs
- EntityTypeEmitter.cs
- Exceptions.cs
- ExpressionPrinter.cs
- DesignerObject.cs
- ConcurrentDictionary.cs
- ObjectItemCollection.cs
- WebPartHeaderCloseVerb.cs
- UnsafeNativeMethods.cs
- BamlRecordReader.cs
- InheritanceContextHelper.cs
- BitmapCodecInfo.cs
- FileChangeNotifier.cs
- WorkflowServiceHost.cs
- OracleInfoMessageEventArgs.cs
- processwaithandle.cs
- LinearKeyFrames.cs
- ProtocolsConfiguration.cs
- XPathMessageFilterElement.cs
- MiniMapControl.xaml.cs
- AppSettingsExpressionBuilder.cs
- ScriptReferenceBase.cs
- ScriptComponentDescriptor.cs
- _BaseOverlappedAsyncResult.cs
- StylusPointProperties.cs
- SubMenuStyle.cs
- SqlUdtInfo.cs
- ColorContextHelper.cs
- FunctionDefinition.cs
- X509CertificateCollection.cs
- FileBasedResourceGroveler.cs
- SaveFileDialog.cs
- LiteralTextContainerControlBuilder.cs
- PasswordRecovery.cs
- WhitespaceSignificantCollectionAttribute.cs
- ConstraintStruct.cs
- SecurityElement.cs
- DatatypeImplementation.cs
- SqlWriter.cs
- ComponentCollection.cs
- DockAndAnchorLayout.cs
- ItemDragEvent.cs
- DataSourceConverter.cs
- StyleSheetRefUrlEditor.cs