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
- QuaternionKeyFrameCollection.cs
- SSmlParser.cs
- PolyLineSegment.cs
- SQLBytesStorage.cs
- OutOfMemoryException.cs
- TemplateBindingExtensionConverter.cs
- Triplet.cs
- Lasso.cs
- ScrollChrome.cs
- EntitySqlQueryCacheKey.cs
- CompilationUtil.cs
- DataServiceStreamProviderWrapper.cs
- PropertyHelper.cs
- BindableAttribute.cs
- SymLanguageVendor.cs
- ReflectionHelper.cs
- TypefaceMap.cs
- SslStreamSecurityBindingElement.cs
- HttpResponseHeader.cs
- PartialArray.cs
- TTSVoice.cs
- TrailingSpaceComparer.cs
- MemberPath.cs
- TimeSpan.cs
- ControlEvent.cs
- LayoutUtils.cs
- DeferredSelectedIndexReference.cs
- PropertyEmitter.cs
- LinearGradientBrush.cs
- XslAstAnalyzer.cs
- RelatedEnd.cs
- MenuCommands.cs
- ObjectQueryState.cs
- IISMapPath.cs
- MultipleViewProviderWrapper.cs
- StringKeyFrameCollection.cs
- XmlUtil.cs
- Unit.cs
- SectionXmlInfo.cs
- AutomationTextAttribute.cs
- NetworkInformationException.cs
- DBBindings.cs
- SemanticAnalyzer.cs
- WorkflowMarkupElementEventArgs.cs
- PropertyFilterAttribute.cs
- SiteIdentityPermission.cs
- UnsafeNativeMethods.cs
- HttpPostedFile.cs
- ObjectQuery.cs
- XmlSchemaSubstitutionGroup.cs
- ExtensionWindow.cs
- ReliabilityContractAttribute.cs
- MarshalByValueComponent.cs
- HttpModuleCollection.cs
- CaseInsensitiveComparer.cs
- ServiceNameElement.cs
- DataGrid.cs
- WebExceptionStatus.cs
- Accessible.cs
- DiagnosticsConfiguration.cs
- LayoutEngine.cs
- Header.cs
- UserPreferenceChangingEventArgs.cs
- ContentTextAutomationPeer.cs
- PixelShader.cs
- VisualTransition.cs
- basenumberconverter.cs
- StopStoryboard.cs
- WebBrowserDocumentCompletedEventHandler.cs
- TemplatedEditableDesignerRegion.cs
- DataGridRelationshipRow.cs
- BooleanAnimationUsingKeyFrames.cs
- PasswordDeriveBytes.cs
- XmlDocumentFragment.cs
- ReadOnlyCollectionBase.cs
- CompilationUnit.cs
- UInt64.cs
- DataColumnMappingCollection.cs
- SafeNativeMethods.cs
- MemberPath.cs
- RequestUriProcessor.cs
- RtfToXamlReader.cs
- UnionExpr.cs
- SqlStream.cs
- FixUp.cs
- DoubleKeyFrameCollection.cs
- XPathDocumentBuilder.cs
- FilterQuery.cs
- EndEvent.cs
- ToolStripGrip.cs
- ModelUtilities.cs
- ListViewDataItem.cs
- DesignerAdapterAttribute.cs
- AdjustableArrowCap.cs
- GridPatternIdentifiers.cs
- TrustManager.cs
- UInt16Storage.cs
- UInt32Storage.cs
- SimpleTypeResolver.cs
- _FtpControlStream.cs