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
- XmlCompatibilityReader.cs
- ScriptBehaviorDescriptor.cs
- SystemNetworkInterface.cs
- OleDbConnectionFactory.cs
- WorkflowShape.cs
- RegexWorker.cs
- GridViewRowCollection.cs
- RandomNumberGenerator.cs
- MethodSet.cs
- BitmapEffectInput.cs
- Queue.cs
- ProfileInfo.cs
- OperatingSystem.cs
- ByteAnimation.cs
- XmlSchemaAppInfo.cs
- PropertyCondition.cs
- SqlProviderServices.cs
- ObjectItemCachedAssemblyLoader.cs
- DelimitedListTraceListener.cs
- AuthStoreRoleProvider.cs
- oledbconnectionstring.cs
- NullableLongAverageAggregationOperator.cs
- InputScopeConverter.cs
- VerificationAttribute.cs
- Timer.cs
- EventRoute.cs
- HintTextMaxWidthConverter.cs
- DoubleCollection.cs
- MsmqInputChannel.cs
- WindowsUserNameCachingSecurityTokenAuthenticator.cs
- TransformGroup.cs
- DocumentPage.cs
- RuntimeConfig.cs
- HtmlWindowCollection.cs
- ForceCopyBuildProvider.cs
- CharAnimationBase.cs
- DesignerHelpers.cs
- DSACryptoServiceProvider.cs
- Partitioner.cs
- StateBag.cs
- CodePageEncoding.cs
- MainMenu.cs
- Internal.cs
- ReferencedCollectionType.cs
- Overlapped.cs
- TreeNodeBindingCollection.cs
- ViewLoader.cs
- HttpModuleActionCollection.cs
- Propagator.JoinPropagator.cs
- ExpressionReplacer.cs
- ClientData.cs
- ResolveNameEventArgs.cs
- TypedElement.cs
- GridItemPattern.cs
- FormViewDeleteEventArgs.cs
- MetadataUtilsSmi.cs
- CompiledRegexRunner.cs
- AutomationPattern.cs
- InternalTypeHelper.cs
- Directory.cs
- WindowsMenu.cs
- TemplateKey.cs
- JournalEntry.cs
- BatchServiceHost.cs
- PerformanceCounter.cs
- versioninfo.cs
- WmlObjectListAdapter.cs
- MetabaseSettingsIis7.cs
- ScriptReferenceEventArgs.cs
- BuildProvider.cs
- ObjectView.cs
- DataGridTableStyleMappingNameEditor.cs
- FileRecordSequenceCompletedAsyncResult.cs
- CodeAttributeDeclaration.cs
- OdbcUtils.cs
- BuildManagerHost.cs
- BinaryFormatterWriter.cs
- Token.cs
- LinqDataSourceView.cs
- NativeMethods.cs
- ServiceMetadataContractBehavior.cs
- ArgIterator.cs
- CursorConverter.cs
- XsltCompileContext.cs
- NumericPagerField.cs
- ConfigurationLockCollection.cs
- DataObjectMethodAttribute.cs
- DataGridViewButtonColumn.cs
- recordstatescratchpad.cs
- HtmlLink.cs
- WebConfigManager.cs
- SmtpNetworkElement.cs
- DataPagerCommandEventArgs.cs
- ErrorHandler.cs
- DefaultBindingPropertyAttribute.cs
- CreatingCookieEventArgs.cs
- DotAtomReader.cs
- WmlMobileTextWriter.cs
- CurrentChangingEventArgs.cs
- FontConverter.cs