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
- DESCryptoServiceProvider.cs
- Activator.cs
- ComponentSerializationService.cs
- JavaScriptString.cs
- FlowDocumentPaginator.cs
- VariableQuery.cs
- BasicHttpBinding.cs
- StrongNameUtility.cs
- ChangeTracker.cs
- StyleHelper.cs
- IndexedEnumerable.cs
- PropertyGridView.cs
- WebConfigManager.cs
- CheckBoxPopupAdapter.cs
- ColumnResizeUndoUnit.cs
- SchemaType.cs
- ZoneLinkButton.cs
- AssemblyInfo.cs
- DbConnectionStringCommon.cs
- CapabilitiesRule.cs
- GenerateHelper.cs
- TransactionChannel.cs
- SafeArrayTypeMismatchException.cs
- SafeProcessHandle.cs
- SqlMethods.cs
- Style.cs
- SafeProcessHandle.cs
- TimeBoundedCache.cs
- TemplateBindingExtensionConverter.cs
- PreservationFileReader.cs
- Optimizer.cs
- WorkflowServiceHostFactory.cs
- RsaSecurityTokenAuthenticator.cs
- PropertyEmitterBase.cs
- TrustLevelCollection.cs
- SecurityManager.cs
- TypeInitializationException.cs
- Token.cs
- X509Certificate2Collection.cs
- DefaultValueAttribute.cs
- ObjectStateFormatter.cs
- XhtmlTextWriter.cs
- WebServiceHostFactory.cs
- EntityContainerEmitter.cs
- RequestResizeEvent.cs
- ArraySegment.cs
- Buffer.cs
- SafeSecurityHelper.cs
- ActivityAction.cs
- CqlParser.cs
- Quad.cs
- StylusPointPropertyInfoDefaults.cs
- OutputCacheSettingsSection.cs
- DataGridParentRows.cs
- CounterSampleCalculator.cs
- NavigationWindow.cs
- RectAnimationBase.cs
- DeflateStream.cs
- PropertyPushdownHelper.cs
- AuthorizationRuleCollection.cs
- ImageMetadata.cs
- QilStrConcatenator.cs
- FontClient.cs
- RequestTimeoutManager.cs
- StructuredTypeInfo.cs
- RoleGroupCollection.cs
- RIPEMD160Managed.cs
- ManagedCodeMarkers.cs
- DesignerCommandAdapter.cs
- TabControlEvent.cs
- StringWriter.cs
- WorkflowEventArgs.cs
- RoleManagerSection.cs
- SqlConnectionHelper.cs
- Accessible.cs
- BitmapFrameEncode.cs
- RuntimeConfig.cs
- TextEndOfLine.cs
- AdapterUtil.cs
- DataMemberListEditor.cs
- XhtmlConformanceSection.cs
- QueryExpr.cs
- TableCell.cs
- PageParser.cs
- RankException.cs
- PageThemeBuildProvider.cs
- HtmlElementCollection.cs
- RowSpanVector.cs
- Root.cs
- DebugView.cs
- ComponentChangingEvent.cs
- UnsafeNativeMethodsTablet.cs
- VideoDrawing.cs
- UserControl.cs
- HostedTcpTransportManager.cs
- Keyboard.cs
- Menu.cs
- TrackingLocation.cs
- UnsafeNativeMethods.cs
- basevalidator.cs