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
- RemotingAttributes.cs
- StrokeCollectionDefaultValueFactory.cs
- GridEntry.cs
- EmptyQuery.cs
- ApplicationContext.cs
- XmlQualifiedNameTest.cs
- ResXResourceSet.cs
- TemplateManager.cs
- ArraySet.cs
- FlowchartDesigner.Helpers.cs
- SamlSecurityToken.cs
- PackageFilter.cs
- NavigatorInput.cs
- DecimalConverter.cs
- BreakRecordTable.cs
- TraceHandlerErrorFormatter.cs
- BufferedReadStream.cs
- LineSegment.cs
- CustomSignedXml.cs
- NumericUpDownAcceleration.cs
- CompatibleComparer.cs
- UnsafeNativeMethods.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- Profiler.cs
- ConfigDefinitionUpdates.cs
- PanelStyle.cs
- HtmlTitle.cs
- SecurityUtils.cs
- BamlTreeNode.cs
- DesignerSerializerAttribute.cs
- CommunicationObject.cs
- MessagingDescriptionAttribute.cs
- cookie.cs
- WrapperSecurityCommunicationObject.cs
- VBIdentifierName.cs
- VisualBrush.cs
- MetaModel.cs
- StyleSheetDesigner.cs
- ExternalException.cs
- DropTarget.cs
- TextTreeRootTextBlock.cs
- WebBrowserSiteBase.cs
- WmpBitmapDecoder.cs
- IdentityVerifier.cs
- ListControlActionList.cs
- DateTimeSerializationSection.cs
- CqlWriter.cs
- sqlstateclientmanager.cs
- StylusEventArgs.cs
- BoundPropertyEntry.cs
- ResourceSet.cs
- TableLayoutPanelCellPosition.cs
- WebPartMenu.cs
- HwndStylusInputProvider.cs
- InternalRelationshipCollection.cs
- UrlAuthFailedErrorFormatter.cs
- XPathBinder.cs
- ColumnResult.cs
- PathFigureCollectionValueSerializer.cs
- OptimisticConcurrencyException.cs
- CopyNodeSetAction.cs
- BasicKeyConstraint.cs
- HatchBrush.cs
- PositiveTimeSpanValidator.cs
- WebErrorHandler.cs
- FrameworkElement.cs
- OperationAbortedException.cs
- BooleanStorage.cs
- XslCompiledTransform.cs
- RelationshipWrapper.cs
- BlobPersonalizationState.cs
- DocumentManager.cs
- sqlpipe.cs
- AffineTransform3D.cs
- RuleSet.cs
- CfgParser.cs
- PersonalizablePropertyEntry.cs
- DefaultAsyncDataDispatcher.cs
- ProofTokenCryptoHandle.cs
- NTAccount.cs
- DataGridViewIntLinkedList.cs
- SafeNativeMemoryHandle.cs
- TransformPattern.cs
- ReferencedAssembly.cs
- ReliableReplySessionChannel.cs
- ExpandableObjectConverter.cs
- ObjectAssociationEndMapping.cs
- ArithmeticException.cs
- SHA512Managed.cs
- WorkflowInstanceExtensionManager.cs
- MonthChangedEventArgs.cs
- ScrollableControl.cs
- PageClientProxyGenerator.cs
- _AutoWebProxyScriptWrapper.cs
- SystemIPv4InterfaceProperties.cs
- OledbConnectionStringbuilder.cs
- TextEvent.cs
- ReflectPropertyDescriptor.cs
- ConnectionsZone.cs
- ResourceProviderFactory.cs