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
- WindowsTooltip.cs
- _Events.cs
- DetailsViewInsertEventArgs.cs
- DescendantBaseQuery.cs
- BindingExpressionUncommonField.cs
- GeneralTransform3DGroup.cs
- ComponentResourceKey.cs
- FlowNode.cs
- XmlEntityReference.cs
- SafeThreadHandle.cs
- QueryOutputWriter.cs
- HttpValueCollection.cs
- ProvidersHelper.cs
- MetadataFile.cs
- WindowsHyperlink.cs
- QueryBranchOp.cs
- UriTemplateMatch.cs
- XmlUtilWriter.cs
- HtmlControlDesigner.cs
- OperatingSystem.cs
- CustomAttributeSerializer.cs
- NotCondition.cs
- DefaultMergeHelper.cs
- ExpressionBuilder.cs
- HostingEnvironmentSection.cs
- GridToolTip.cs
- Rules.cs
- _ListenerResponseStream.cs
- SimpleBitVector32.cs
- FunctionOverloadResolver.cs
- Select.cs
- ButtonBaseAdapter.cs
- WebPartAddingEventArgs.cs
- XmlToDatasetMap.cs
- XslNumber.cs
- StateWorkerRequest.cs
- EntityContainerRelationshipSetEnd.cs
- SingleSelectRootGridEntry.cs
- XmlSchemaAnnotation.cs
- ClaimComparer.cs
- DataTableClearEvent.cs
- SkipStoryboardToFill.cs
- WebPartZoneBase.cs
- PagePropertiesChangingEventArgs.cs
- TreeIterator.cs
- _LocalDataStore.cs
- Rotation3D.cs
- TypeConstant.cs
- PointValueSerializer.cs
- XmlReflectionImporter.cs
- PersonalizableTypeEntry.cs
- StreamReader.cs
- Repeater.cs
- TreeWalker.cs
- SerializationObjectManager.cs
- DesignTimeTemplateParser.cs
- AffineTransform3D.cs
- ClearCollection.cs
- ExtentCqlBlock.cs
- UIElement.cs
- HttpCacheVary.cs
- SqlTriggerAttribute.cs
- TemplatePropertyEntry.cs
- PropertyEmitter.cs
- SapiGrammar.cs
- PackUriHelper.cs
- Dispatcher.cs
- PriorityChain.cs
- MsmqAppDomainProtocolHandler.cs
- PolicyStatement.cs
- WebPartDisplayModeEventArgs.cs
- RSAPKCS1SignatureFormatter.cs
- PermissionSetTriple.cs
- CodeDomComponentSerializationService.cs
- DesignerView.cs
- GroupBoxRenderer.cs
- ProxySimple.cs
- HostProtectionPermission.cs
- MatrixConverter.cs
- MetadataItem.cs
- ConnectionPoint.cs
- ReadOnlyCollection.cs
- PaintValueEventArgs.cs
- ResolveResponseInfo.cs
- StrokeIntersection.cs
- RuleProcessor.cs
- OptimisticConcurrencyException.cs
- SqlCommandBuilder.cs
- While.cs
- ConstructorNeedsTagAttribute.cs
- ValuePattern.cs
- EncoderExceptionFallback.cs
- OrderToken.cs
- DBAsyncResult.cs
- AccessText.cs
- MSAAEventDispatcher.cs
- XmlSiteMapProvider.cs
- GridSplitterAutomationPeer.cs
- EntityDataSourceReferenceGroup.cs
- TemplateKeyConverter.cs