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
- HwndPanningFeedback.cs
- SByteConverter.cs
- SerializationStore.cs
- RichTextBoxContextMenu.cs
- DrawingContextWalker.cs
- TagElement.cs
- ConfigurationSchemaErrors.cs
- ToolStripLocationCancelEventArgs.cs
- ValidateNames.cs
- ServiceNotStartedException.cs
- Translator.cs
- WebHeaderCollection.cs
- FieldToken.cs
- RegistryConfigurationProvider.cs
- ListChangedEventArgs.cs
- MSHTMLHost.cs
- Message.cs
- Propagator.ExtentPlaceholderCreator.cs
- RunWorkerCompletedEventArgs.cs
- DbException.cs
- Argument.cs
- TreeNodeCollection.cs
- BamlWriter.cs
- CryptoApi.cs
- DisposableCollectionWrapper.cs
- TypeDependencyAttribute.cs
- CodeCommentStatement.cs
- CanonicalizationDriver.cs
- SecurityTokenTypes.cs
- BufferManager.cs
- XamlSerializerUtil.cs
- AssemblyInfo.cs
- Pointer.cs
- MsmqBindingBase.cs
- XmlResolver.cs
- RemotingConfigParser.cs
- InfoCardSymmetricCrypto.cs
- DbBuffer.cs
- ClientScriptManagerWrapper.cs
- MetadataItemCollectionFactory.cs
- RSACryptoServiceProvider.cs
- ObjectAnimationUsingKeyFrames.cs
- CustomCredentialPolicy.cs
- FormViewPagerRow.cs
- DataListItemCollection.cs
- DataGridItemCollection.cs
- NamespaceImport.cs
- WebPartConnectVerb.cs
- ListViewItemCollectionEditor.cs
- CodeCompileUnit.cs
- UriSection.cs
- EventMappingSettingsCollection.cs
- TableLayoutRowStyleCollection.cs
- PermissionSet.cs
- HMACSHA512.cs
- ScrollChangedEventArgs.cs
- ClientSideProviderDescription.cs
- WebAdminConfigurationHelper.cs
- TextDecorationCollectionConverter.cs
- Logging.cs
- ColumnReorderedEventArgs.cs
- DoWorkEventArgs.cs
- DataMisalignedException.cs
- Assembly.cs
- State.cs
- DrawingContextDrawingContextWalker.cs
- documentsequencetextview.cs
- XPathNodeIterator.cs
- EditorZoneAutoFormat.cs
- MediaEntryAttribute.cs
- InheritanceRules.cs
- TemplatedWizardStep.cs
- BaseTemplateParser.cs
- DataGridLinkButton.cs
- MultiplexingDispatchMessageFormatter.cs
- AdornerLayer.cs
- ImageSource.cs
- BrowserCapabilitiesFactory.cs
- XmlDomTextWriter.cs
- Command.cs
- SessionStateUtil.cs
- MLangCodePageEncoding.cs
- DiscoveryInnerClientManaged11.cs
- ViewgenContext.cs
- GZipDecoder.cs
- Console.cs
- MessageBuilder.cs
- TreeNode.cs
- StateRuntime.cs
- DefaultMergeHelper.cs
- InvokeHandlers.cs
- WindowsServiceElement.cs
- WindowsFormsHostAutomationPeer.cs
- StylusPointProperty.cs
- RoleGroupCollection.cs
- HttpCacheVaryByContentEncodings.cs
- DataGridViewRowCollection.cs
- DictionarySurrogate.cs
- TargetFrameworkAttribute.cs
- Journal.cs