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
- Avt.cs
- SdlChannelSink.cs
- IncrementalHitTester.cs
- WorkflowApplicationUnloadedException.cs
- ToolboxSnapDragDropEventArgs.cs
- RegistrationServices.cs
- Drawing.cs
- PropertyToken.cs
- HwndSource.cs
- PathSegmentCollection.cs
- ValidatorAttribute.cs
- PenContext.cs
- SoapElementAttribute.cs
- XslTransform.cs
- ZoneLinkButton.cs
- Pts.cs
- TypeDescriptor.cs
- CompilerScopeManager.cs
- LogReservationCollection.cs
- DurableDispatcherAddressingFault.cs
- DiagnosticsElement.cs
- EventLogPermission.cs
- FlowDocument.cs
- AlphabeticalEnumConverter.cs
- OracleInternalConnection.cs
- ValidationHelper.cs
- CryptographicAttribute.cs
- IconEditor.cs
- HttpRequestCacheValidator.cs
- ComponentChangingEvent.cs
- PointHitTestParameters.cs
- EditorZone.cs
- Switch.cs
- DataGridViewRowPostPaintEventArgs.cs
- BaseWebProxyFinder.cs
- DataSysAttribute.cs
- PasswordBoxAutomationPeer.cs
- PopOutPanel.cs
- EpmCustomContentSerializer.cs
- FixedSOMContainer.cs
- PropertyRecord.cs
- SparseMemoryStream.cs
- RenderTargetBitmap.cs
- ToolboxDataAttribute.cs
- AuthenticatedStream.cs
- UserMapPath.cs
- DesignTimeSiteMapProvider.cs
- TextEditorLists.cs
- WebPartZoneCollection.cs
- CounterSample.cs
- HyperlinkAutomationPeer.cs
- CacheDependency.cs
- GridViewCancelEditEventArgs.cs
- DesignerView.cs
- EpmCustomContentWriterNodeData.cs
- ServiceReflector.cs
- PointF.cs
- DrawingBrush.cs
- PageScaling.cs
- XamlPoint3DCollectionSerializer.cs
- SessionStateContainer.cs
- ColumnReorderedEventArgs.cs
- HuffCodec.cs
- PlanCompilerUtil.cs
- RequestResponse.cs
- DataTable.cs
- UpdatePanelTrigger.cs
- XmlValidatingReaderImpl.cs
- ListViewItem.cs
- ZipIOModeEnforcingStream.cs
- BatchWriter.cs
- DataTablePropertyDescriptor.cs
- XmlName.cs
- OleDbFactory.cs
- Events.cs
- DataGridViewColumnEventArgs.cs
- KoreanCalendar.cs
- NavigationPropertyEmitter.cs
- DependencySource.cs
- Converter.cs
- util.cs
- WSFederationHttpBindingElement.cs
- ToolboxSnapDragDropEventArgs.cs
- ChtmlFormAdapter.cs
- BackgroundWorker.cs
- CollectionView.cs
- Triplet.cs
- ISFTagAndGuidCache.cs
- PeerInvitationResponse.cs
- TdsParserHelperClasses.cs
- IsolatedStorageFilePermission.cs
- Queue.cs
- Form.cs
- SelectedPathEditor.cs
- UrlPath.cs
- InputBuffer.cs
- Label.cs
- compensatingcollection.cs
- ControlIdConverter.cs
- DataGridHyperlinkColumn.cs