Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPRECTF.cs / 2 / GPRECTF.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OletxVolatileEnlistment.cs
- CompositeTypefaceMetrics.cs
- xmlformatgeneratorstatics.cs
- RenderDataDrawingContext.cs
- TreeViewAutomationPeer.cs
- ExpanderAutomationPeer.cs
- ObjectPropertyMapping.cs
- XmlLangPropertyAttribute.cs
- DetailsViewUpdateEventArgs.cs
- ObjectQueryState.cs
- VideoDrawing.cs
- ConsoleKeyInfo.cs
- HtmlElementCollection.cs
- Pen.cs
- DeferredReference.cs
- CompilerResults.cs
- ToolboxItemFilterAttribute.cs
- SafeFreeMibTable.cs
- BitmapEffectCollection.cs
- ReflectionTypeLoadException.cs
- SafeCloseHandleCritical.cs
- DataConnectionHelper.cs
- JapaneseLunisolarCalendar.cs
- PageHandlerFactory.cs
- WorkflowHostingResponseContext.cs
- ImageAnimator.cs
- DelimitedListTraceListener.cs
- TextProviderWrapper.cs
- SplitterEvent.cs
- Renderer.cs
- FormsAuthenticationTicket.cs
- RequestNavigateEventArgs.cs
- ScriptControl.cs
- SQLChars.cs
- XpsFixedDocumentReaderWriter.cs
- ModelUtilities.cs
- Code.cs
- SoapIncludeAttribute.cs
- XmlJsonWriter.cs
- CheckableControlBaseAdapter.cs
- SQLBoolean.cs
- TextServicesLoader.cs
- AsymmetricKeyExchangeDeformatter.cs
- SmtpFailedRecipientsException.cs
- BaseServiceProvider.cs
- SubclassTypeValidatorAttribute.cs
- SafeEventLogReadHandle.cs
- MenuItemStyleCollection.cs
- ValidatedControlConverter.cs
- StylusSystemGestureEventArgs.cs
- SubMenuStyle.cs
- CalendarDayButton.cs
- WorkflowDefinitionDispenser.cs
- ToggleButton.cs
- PageContentCollection.cs
- StringValidatorAttribute.cs
- KeyValuePairs.cs
- Timer.cs
- TCPClient.cs
- TreeNodeMouseHoverEvent.cs
- StylusButtonEventArgs.cs
- XmlTextAttribute.cs
- Figure.cs
- URLString.cs
- PrinterSettings.cs
- FloatUtil.cs
- FontStretchConverter.cs
- SendingRequestEventArgs.cs
- DataConnectionHelper.cs
- ProcessModule.cs
- ResourceManagerWrapper.cs
- LinkConverter.cs
- ToolboxComponentsCreatedEventArgs.cs
- CollectionCodeDomSerializer.cs
- XmlSchemaCollection.cs
- EventLog.cs
- _IPv4Address.cs
- SerializationStore.cs
- OdbcCommand.cs
- StringValidator.cs
- SqlTopReducer.cs
- PageThemeCodeDomTreeGenerator.cs
- Cursor.cs
- CqlParser.cs
- Wizard.cs
- FrameworkElementFactoryMarkupObject.cs
- XsltSettings.cs
- FormCollection.cs
- TypeResolvingOptionsAttribute.cs
- TextWriter.cs
- XmlIlTypeHelper.cs
- FontUnit.cs
- SolidBrush.cs
- XPathSelectionIterator.cs
- LineUtil.cs
- XmlAutoDetectWriter.cs
- validationstate.cs
- MetadataFile.cs
- Parameter.cs
- ServiceOperationViewControl.cs