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
- SerializeAbsoluteContext.cs
- SelectionChangedEventArgs.cs
- sqlcontext.cs
- WpfKnownMember.cs
- WebControl.cs
- DPCustomTypeDescriptor.cs
- SQLMoney.cs
- WindowsHyperlink.cs
- X509SecurityTokenProvider.cs
- ExpressionNormalizer.cs
- TransformProviderWrapper.cs
- SecurityElement.cs
- PagedDataSource.cs
- ConfigXmlAttribute.cs
- regiisutil.cs
- SocketElement.cs
- StorageAssociationTypeMapping.cs
- BindingGroup.cs
- COM2Enum.cs
- LinkLabelLinkClickedEvent.cs
- InkCollectionBehavior.cs
- MailBnfHelper.cs
- StringValidatorAttribute.cs
- X500Name.cs
- PixelFormatConverter.cs
- NegationPusher.cs
- objectquery_tresulttype.cs
- NullRuntimeConfig.cs
- SQLString.cs
- ToolStripOverflowButton.cs
- propertytag.cs
- RenameRuleObjectDialog.cs
- CheckBoxFlatAdapter.cs
- FrameworkRichTextComposition.cs
- VisualStyleInformation.cs
- SecurityCredentialsManager.cs
- PowerModeChangedEventArgs.cs
- Nullable.cs
- ArcSegment.cs
- FormsAuthenticationTicket.cs
- MarkupExtensionParser.cs
- CookieProtection.cs
- NegotiateStream.cs
- DataGridItemCollection.cs
- ApplicationContext.cs
- InfoCardAsymmetricCrypto.cs
- RequestCacheManager.cs
- DetailsViewModeEventArgs.cs
- TableCell.cs
- DateBoldEvent.cs
- StatusBar.cs
- Classification.cs
- EntityDataSourceValidationException.cs
- DataGridViewCell.cs
- ScriptDescriptor.cs
- GuidelineSet.cs
- WebException.cs
- HttpCacheVaryByContentEncodings.cs
- NetSectionGroup.cs
- SoapServerMethod.cs
- SiteMapProvider.cs
- XsdBuilder.cs
- WindowsSpinner.cs
- XmlSchemaDocumentation.cs
- KeyTimeConverter.cs
- RegexCode.cs
- Constant.cs
- SocketAddress.cs
- ScriptingProfileServiceSection.cs
- UriSection.cs
- CompilerTypeWithParams.cs
- WebServicesInteroperability.cs
- Translator.cs
- FlagsAttribute.cs
- SqlDataSourceSelectingEventArgs.cs
- ThousandthOfEmRealDoubles.cs
- DataAdapter.cs
- WebEventCodes.cs
- EventLogTraceListener.cs
- LinkButton.cs
- DiscoveryService.cs
- HostSecurityManager.cs
- LogLogRecord.cs
- ExcludePathInfo.cs
- StrokeNodeOperations2.cs
- XmlDigitalSignatureProcessor.cs
- CredentialCache.cs
- PageAsyncTask.cs
- Helpers.cs
- SecurityState.cs
- NodeFunctions.cs
- QueryOperator.cs
- Floater.cs
- WebPartZoneAutoFormat.cs
- TextSimpleMarkerProperties.cs
- InternalsVisibleToAttribute.cs
- SqlLiftIndependentRowExpressions.cs
- EdmComplexPropertyAttribute.cs
- HostingEnvironmentException.cs
- SrgsElementFactory.cs