Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DetectRunnableInstancesTask.cs
- EventLogPropertySelector.cs
- WebColorConverter.cs
- TextChangedEventArgs.cs
- ByteStream.cs
- ReadOnlyHierarchicalDataSource.cs
- QueuePropertyVariants.cs
- PolyQuadraticBezierSegment.cs
- TileBrush.cs
- WorkflowRuntimeElement.cs
- XmlDataSource.cs
- WebSysDefaultValueAttribute.cs
- SqlCacheDependency.cs
- _AutoWebProxyScriptEngine.cs
- Container.cs
- BasicKeyConstraint.cs
- TrustManagerPromptUI.cs
- EncryptedPackage.cs
- ToolboxItemFilterAttribute.cs
- CryptoKeySecurity.cs
- DoubleAnimation.cs
- Expressions.cs
- EventEntry.cs
- MultiAsyncResult.cs
- RemoteAsymmetricSignatureFormatter.cs
- Binding.cs
- PreviewControlDesigner.cs
- Rectangle.cs
- UIElementIsland.cs
- XmlNode.cs
- TypeLoadException.cs
- ThreadExceptionEvent.cs
- ReadOnlyObservableCollection.cs
- UpdatePanel.cs
- Assembly.cs
- SqlHelper.cs
- DataGrid.cs
- MultiDataTrigger.cs
- ProcessInputEventArgs.cs
- StringUtil.cs
- RuntimeConfigLKG.cs
- BrowserCapabilitiesFactory.cs
- processwaithandle.cs
- TextInfo.cs
- UpdateException.cs
- InstanceStore.cs
- AutomationPattern.cs
- ReflectionServiceProvider.cs
- X509AsymmetricSecurityKey.cs
- XmlSchemaObjectTable.cs
- GridViewDeleteEventArgs.cs
- MemoryFailPoint.cs
- Misc.cs
- EpmSourcePathSegment.cs
- ItemDragEvent.cs
- StringComparer.cs
- PagerStyle.cs
- Trace.cs
- ValidationRuleCollection.cs
- PinnedBufferMemoryStream.cs
- RichTextBox.cs
- MenuDesigner.cs
- DetailsViewRow.cs
- FontSourceCollection.cs
- ViewGenerator.cs
- HostedAspNetEnvironment.cs
- StructuredTypeEmitter.cs
- WebInvokeAttribute.cs
- ExpressionBindingCollection.cs
- Variant.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- ExecutedRoutedEventArgs.cs
- MemoryMappedView.cs
- InvocationExpression.cs
- HttpRequest.cs
- SqlVersion.cs
- GridItemProviderWrapper.cs
- HMACSHA384.cs
- Serializer.cs
- ToolStripPanelSelectionBehavior.cs
- ActiveXContainer.cs
- ClickablePoint.cs
- DashStyle.cs
- AutomationElement.cs
- TextElementCollectionHelper.cs
- UpdateException.cs
- sapiproxy.cs
- SelectorItemAutomationPeer.cs
- ProgressBarRenderer.cs
- ItemCollection.cs
- ExpressionContext.cs
- ConditionValidator.cs
- HyperLink.cs
- BlobPersonalizationState.cs
- DesignerTransaction.cs
- DesignConnectionCollection.cs
- CodeBlockBuilder.cs
- Debug.cs
- objectresult_tresulttype.cs
- TableCellCollection.cs