Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPRECTF.cs / 1305376 / 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
- Line.cs
- JavascriptCallbackResponseProperty.cs
- TypedTableGenerator.cs
- EmbeddedMailObjectsCollection.cs
- ModuleBuilder.cs
- Timer.cs
- EventNotify.cs
- InvokeHandlers.cs
- GetFileNameResult.cs
- DataGridViewLayoutData.cs
- SqlRowUpdatingEvent.cs
- PersonalizablePropertyEntry.cs
- EventLogger.cs
- ConfigsHelper.cs
- TheQuery.cs
- CollectionView.cs
- SelectedCellsChangedEventArgs.cs
- TableCell.cs
- CodeGenerationManager.cs
- Effect.cs
- SymLanguageType.cs
- ExeConfigurationFileMap.cs
- Source.cs
- HtmlInputHidden.cs
- OleDbEnumerator.cs
- RelationshipFixer.cs
- SHA512Managed.cs
- MatrixAnimationUsingPath.cs
- SoapEnumAttribute.cs
- FlowDocumentPage.cs
- DataObjectCopyingEventArgs.cs
- WindowsSidIdentity.cs
- MasterPageBuildProvider.cs
- PropertyChangeTracker.cs
- SecurityTokenSerializer.cs
- ToolStripManager.cs
- XmlBinaryReaderSession.cs
- BufferedStream.cs
- MSHTMLHostUtil.cs
- SmtpClient.cs
- AutomationIdentifierGuids.cs
- ClientViaElement.cs
- XmlWrappingReader.cs
- HtmlDocument.cs
- ButtonField.cs
- DrawingCollection.cs
- Cursor.cs
- SQLConvert.cs
- CatalogPartChrome.cs
- CompositeDataBoundControl.cs
- DataControlReferenceCollection.cs
- BroadcastEventHelper.cs
- SmtpTransport.cs
- WsatEtwTraceListener.cs
- SystemGatewayIPAddressInformation.cs
- _ChunkParse.cs
- TableLayoutPanelDesigner.cs
- ConfigurationManagerHelper.cs
- DataComponentNameHandler.cs
- Hashtable.cs
- CellParaClient.cs
- SynchronizedDispatch.cs
- GridProviderWrapper.cs
- NativeRightsManagementAPIsStructures.cs
- glyphs.cs
- AutomationFocusChangedEventArgs.cs
- ExecutedRoutedEventArgs.cs
- SelectionItemProviderWrapper.cs
- PointF.cs
- ConfigurationSectionCollection.cs
- SHA256CryptoServiceProvider.cs
- RightsManagementErrorHandler.cs
- MetaModel.cs
- OleDbEnumerator.cs
- X509CertificateCollection.cs
- linebase.cs
- MappingSource.cs
- XhtmlBasicImageAdapter.cs
- ContextMenuStrip.cs
- WorkflowTraceTransfer.cs
- Journaling.cs
- ResXResourceWriter.cs
- HtmlGenericControl.cs
- BrowserCapabilitiesFactoryBase.cs
- TextWriterTraceListener.cs
- TextTreeDeleteContentUndoUnit.cs
- XmlSchemaIdentityConstraint.cs
- SqlDataSourceEnumerator.cs
- TrackBar.cs
- DataBoundLiteralControl.cs
- EventSinkHelperWriter.cs
- ComboBoxRenderer.cs
- AspProxy.cs
- TextServicesCompartmentEventSink.cs
- TdsEnums.cs
- DynamicAttribute.cs
- DocumentViewerBaseAutomationPeer.cs
- TreeNodeMouseHoverEvent.cs
- AppDomainAttributes.cs
- MetadataSource.cs