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
- DocumentGrid.cs
- HttpRuntimeSection.cs
- JoinSymbol.cs
- ConstructorNeedsTagAttribute.cs
- GridViewSortEventArgs.cs
- SessionParameter.cs
- BinaryParser.cs
- TextOnlyOutput.cs
- CryptoStream.cs
- SharedUtils.cs
- CngKey.cs
- validationstate.cs
- SyndicationDeserializer.cs
- InertiaRotationBehavior.cs
- JoinCqlBlock.cs
- XmlDataSource.cs
- ControlCachePolicy.cs
- Executor.cs
- BufferedMessageData.cs
- LogRecordSequence.cs
- Gdiplus.cs
- DataGridViewRowEventArgs.cs
- VirtualPathUtility.cs
- Tile.cs
- WindowsTooltip.cs
- AsymmetricSignatureFormatter.cs
- ThemeableAttribute.cs
- AsymmetricCryptoHandle.cs
- InternalException.cs
- CancellationScope.cs
- CodeEntryPointMethod.cs
- EditBehavior.cs
- TemplateKeyConverter.cs
- ISFClipboardData.cs
- SubtreeProcessor.cs
- SoapSchemaMember.cs
- WSDualHttpBinding.cs
- BitmapSource.cs
- ElementUtil.cs
- _IPv4Address.cs
- ProviderBase.cs
- InlineUIContainer.cs
- MonitorWrapper.cs
- ScriptingProfileServiceSection.cs
- Util.cs
- KeyValuePair.cs
- WebPageTraceListener.cs
- LinqDataSourceEditData.cs
- Table.cs
- DecoratedNameAttribute.cs
- DelegatingConfigHost.cs
- ResponseBodyWriter.cs
- BinaryNode.cs
- Vars.cs
- TypeDescriptionProviderAttribute.cs
- AmbientEnvironment.cs
- SystemIPv4InterfaceProperties.cs
- PropertyItemInternal.cs
- ThreadPoolTaskScheduler.cs
- SkewTransform.cs
- Dynamic.cs
- VersionPair.cs
- QuaternionRotation3D.cs
- categoryentry.cs
- DBConcurrencyException.cs
- PlacementWorkspace.cs
- ToolStripContentPanel.cs
- CalendarBlackoutDatesCollection.cs
- DeadCharTextComposition.cs
- XpsSerializationManager.cs
- PropertyGridView.cs
- dataSvcMapFileLoader.cs
- Helpers.cs
- WebServiceResponseDesigner.cs
- Transaction.cs
- EntryPointNotFoundException.cs
- Atom10FormatterFactory.cs
- ConnectionPointGlyph.cs
- EntityDataSourceContainerNameConverter.cs
- EncryptedData.cs
- x509utils.cs
- ListViewGroupConverter.cs
- Evaluator.cs
- CultureTable.cs
- basevalidator.cs
- DataGridColumnsPage.cs
- OleDbMetaDataFactory.cs
- HttpRequest.cs
- CombinedGeometry.cs
- AssemblyNameUtility.cs
- MetadataSection.cs
- DesignerActionMethodItem.cs
- DesignerActionMethodItem.cs
- RequiredFieldValidator.cs
- DataConnectionHelper.cs
- PresentationSource.cs
- ScriptingAuthenticationServiceSection.cs
- JoinElimination.cs
- WpfXamlType.cs
- MissingSatelliteAssemblyException.cs