Code:
/ 4.0 / 4.0 / 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.
//------------------------------------------------------------------------------
//
// 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
- DtdParser.cs
- SQLDateTimeStorage.cs
- TdsParserHelperClasses.cs
- ListViewCancelEventArgs.cs
- ListItemParagraph.cs
- _ProxyRegBlob.cs
- OneOfTypeConst.cs
- RoleManagerSection.cs
- ToolStripButton.cs
- ObjectItemCachedAssemblyLoader.cs
- AutoResetEvent.cs
- EntityDataSourceWrapper.cs
- XMLDiffLoader.cs
- ClientUrlResolverWrapper.cs
- RbTree.cs
- GZipDecoder.cs
- CharEnumerator.cs
- TextTreeUndo.cs
- Soap11ServerProtocol.cs
- DataStreamFromComStream.cs
- WebHostScriptMappingsInstallComponent.cs
- RuntimeResourceSet.cs
- AppModelKnownContentFactory.cs
- ProfileManager.cs
- SplitterPanel.cs
- PagesChangedEventArgs.cs
- Converter.cs
- SafeWaitHandle.cs
- InputMethodStateTypeInfo.cs
- TryExpression.cs
- ListViewItemMouseHoverEvent.cs
- XsdDateTime.cs
- SourceItem.cs
- HtmlTableCellCollection.cs
- Delay.cs
- SingleAnimationBase.cs
- TextRenderer.cs
- TextContainer.cs
- HyperLinkStyle.cs
- FileSystemEventArgs.cs
- RawStylusSystemGestureInputReport.cs
- ListViewItemMouseHoverEvent.cs
- GraphicsState.cs
- XslTransform.cs
- TrackBarDesigner.cs
- IDReferencePropertyAttribute.cs
- PropertyInfo.cs
- VerbConverter.cs
- SafeSecurityHelper.cs
- TreeViewHitTestInfo.cs
- SharedStatics.cs
- PrintControllerWithStatusDialog.cs
- XPathBuilder.cs
- SmtpClient.cs
- AvTrace.cs
- GlobalizationAssembly.cs
- XmlChildNodes.cs
- RegexRunnerFactory.cs
- ExternalFile.cs
- WrappedOptions.cs
- DiscoveryVersion.cs
- Speller.cs
- XmlSchemaAnyAttribute.cs
- TypefaceMap.cs
- TransformConverter.cs
- LineInfo.cs
- ValidationErrorEventArgs.cs
- TypeBuilderInstantiation.cs
- ToolStripDropDownClosedEventArgs.cs
- SystemThemeKey.cs
- ButtonRenderer.cs
- Operator.cs
- TimeSpanOrInfiniteConverter.cs
- EntityTransaction.cs
- DBCommand.cs
- SelectionGlyph.cs
- SimpleApplicationHost.cs
- InkCanvasAutomationPeer.cs
- TextTreeObjectNode.cs
- ToolStripGripRenderEventArgs.cs
- XmlSchemaCollection.cs
- ValidatorUtils.cs
- EastAsianLunisolarCalendar.cs
- IndexedEnumerable.cs
- PeerTransportBindingElement.cs
- HttpModuleAction.cs
- BindingListCollectionView.cs
- InvalidateEvent.cs
- StringSource.cs
- ParagraphResult.cs
- Collection.cs
- PropertyEmitterBase.cs
- ToolBar.cs
- FilterRepeater.cs
- DBSchemaRow.cs
- Part.cs
- AppearanceEditorPart.cs
- SafeNativeMethodsMilCoreApi.cs
- ButtonField.cs
- XslAstAnalyzer.cs