Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPRECTF.cs / 1 / GPRECTF.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /*************************************************************************\ * * Copyright (c) 1998-1999, Microsoft Corp. All Rights Reserved. * * Module Name: * * GPRECTF.cpp * * Abstract: * * Native GDI+ floating-point coordinate rectangle structure. * * Revision History: * * 12/14/1998 davidx * Created it. * \**************************************************************************/ 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SHA256Managed.cs
- StatusBarPanelClickEvent.cs
- MimeMultiPart.cs
- ExpressionPrefixAttribute.cs
- DictionaryGlobals.cs
- GlyphRun.cs
- TextEditorCharacters.cs
- AsyncStreamReader.cs
- InstanceCollisionException.cs
- SimpleHandlerFactory.cs
- XmlAttributeAttribute.cs
- SQLInt32Storage.cs
- ResumeStoryboard.cs
- Point.cs
- UpdateException.cs
- ADMembershipUser.cs
- BaseCollection.cs
- ObjectDataProvider.cs
- RequestStatusBarUpdateEventArgs.cs
- InvalidDataException.cs
- UpdatableGenericsFeature.cs
- CoreSwitches.cs
- WebBrowserBase.cs
- ProcessHost.cs
- TransactionTraceIdentifier.cs
- SQLDecimal.cs
- HttpModuleActionCollection.cs
- DeclarativeCatalogPart.cs
- ServerIdentity.cs
- CheckBoxField.cs
- ObjectQuery.cs
- SendKeys.cs
- IisTraceListener.cs
- AssemblyAttributes.cs
- PromptStyle.cs
- SSmlParser.cs
- TreeNodeClickEventArgs.cs
- DataGridViewCellParsingEventArgs.cs
- GeometryCollection.cs
- ApplicationActivator.cs
- ClrPerspective.cs
- Menu.cs
- ConfigurationSectionCollection.cs
- TemplateControlBuildProvider.cs
- InputMethod.cs
- ConfigurationStrings.cs
- TraceSection.cs
- PairComparer.cs
- TextProperties.cs
- TextWriter.cs
- CommonProperties.cs
- LocalFileSettingsProvider.cs
- QueryExpr.cs
- SamlSecurityToken.cs
- SQLInt16Storage.cs
- XmlResolver.cs
- EventLogEntryCollection.cs
- DictionarySurrogate.cs
- MimeMapping.cs
- WebPartTracker.cs
- ConfigXmlWhitespace.cs
- DataControlFieldCell.cs
- UserPreferenceChangedEventArgs.cs
- SystemInformation.cs
- ObjectListSelectEventArgs.cs
- WebPartConnectVerb.cs
- FileLoadException.cs
- EFTableProvider.cs
- DetailsViewDeleteEventArgs.cs
- ExpressionNormalizer.cs
- Helper.cs
- SessionIDManager.cs
- NumberFormatter.cs
- DodSequenceMerge.cs
- OleDbInfoMessageEvent.cs
- Timer.cs
- TypeConverterAttribute.cs
- TextEditorMouse.cs
- FieldNameLookup.cs
- PeerContact.cs
- HtmlShimManager.cs
- RectIndependentAnimationStorage.cs
- NumericUpDown.cs
- iisPickupDirectory.cs
- InkPresenterAutomationPeer.cs
- ProcessActivityTreeOptions.cs
- PropertyTab.cs
- TemplatedWizardStep.cs
- FontStyle.cs
- VectorValueSerializer.cs
- RoleManagerModule.cs
- RtfToXamlLexer.cs
- NativeObjectSecurity.cs
- DocumentPage.cs
- TdsParserStateObject.cs
- SqlLiftWhereClauses.cs
- PowerStatus.cs
- Point3DAnimationUsingKeyFrames.cs
- CriticalFileToken.cs
- NamespaceExpr.cs