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
- ResolveMatchesMessageCD1.cs
- CaseInsensitiveComparer.cs
- InstanceDescriptor.cs
- NetSectionGroup.cs
- Invariant.cs
- MenuTracker.cs
- MultitargetUtil.cs
- SignatureTargetIdManager.cs
- EmptyEnumerator.cs
- CodeTypeDelegate.cs
- ResolvedKeyFrameEntry.cs
- DefaultHttpHandler.cs
- ScrollPattern.cs
- DateTimeFormatInfoScanner.cs
- Permission.cs
- LinkLabel.cs
- SamlAttribute.cs
- Double.cs
- GraphicsContainer.cs
- FileChangesMonitor.cs
- ProxyGenerator.cs
- DataGridViewColumnDesigner.cs
- FixedSOMElement.cs
- ProjectionPath.cs
- SafeThreadHandle.cs
- CompatibleIComparer.cs
- XmlSchemaNotation.cs
- SHA512.cs
- PersonalizationProviderHelper.cs
- FixedDocument.cs
- WebConfigManager.cs
- AttributeUsageAttribute.cs
- SplitterPanel.cs
- PageCatalogPart.cs
- StrongNameKeyPair.cs
- ComponentSerializationService.cs
- PrinterSettings.cs
- NamespaceQuery.cs
- ValueOfAction.cs
- InputBindingCollection.cs
- ItemCheckedEvent.cs
- TagNameToTypeMapper.cs
- PeerPresenceInfo.cs
- ConfigErrorGlyph.cs
- GridViewRowPresenterBase.cs
- NetTcpSectionData.cs
- EntityCollectionChangedParams.cs
- GrammarBuilderPhrase.cs
- SQLStringStorage.cs
- IdentityModelDictionary.cs
- ObjectCache.cs
- ListContractAdapter.cs
- OleDbInfoMessageEvent.cs
- DecimalAnimation.cs
- PlaceHolder.cs
- EventData.cs
- TdsParserStaticMethods.cs
- HttpListenerException.cs
- SqlProvider.cs
- CheckableControlBaseAdapter.cs
- XmlReader.cs
- JsonXmlDataContract.cs
- Menu.cs
- DebugView.cs
- QuotedPrintableStream.cs
- ResXDataNode.cs
- XmlCharacterData.cs
- AssemblyBuilderData.cs
- TimerExtension.cs
- SmtpCommands.cs
- UnsafeNativeMethodsPenimc.cs
- PictureBox.cs
- InstanceDataCollection.cs
- Duration.cs
- CustomAttribute.cs
- TextRange.cs
- ShapingEngine.cs
- HandlerBase.cs
- QilGeneratorEnv.cs
- LassoHelper.cs
- CompilerCollection.cs
- ActivityExecutorDelegateInfo.cs
- XhtmlCssHandler.cs
- DataSourceCacheDurationConverter.cs
- HTTPNotFoundHandler.cs
- SymmetricKey.cs
- SplitterPanel.cs
- X509Utils.cs
- OutgoingWebResponseContext.cs
- DesignerFrame.cs
- RangeValidator.cs
- HitTestDrawingContextWalker.cs
- _StreamFramer.cs
- Imaging.cs
- BinaryCommonClasses.cs
- SystemParameters.cs
- ReaderContextStackData.cs
- UrlPropertyAttribute.cs
- SqlTriggerAttribute.cs
- InfiniteTimeSpanConverter.cs