Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPRECTF.cs / 1 / 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
- SqlTypesSchemaImporter.cs
- ExceptQueryOperator.cs
- BufferBuilder.cs
- ConstructorBuilder.cs
- ContractInferenceHelper.cs
- DbQueryCommandTree.cs
- ADMembershipUser.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- GridViewRowEventArgs.cs
- DataBindingList.cs
- PrintPreviewControl.cs
- TextAdaptor.cs
- OperationDescription.cs
- IPGlobalProperties.cs
- objectresult_tresulttype.cs
- InternalTypeHelper.cs
- TimeSpanStorage.cs
- DrawToolTipEventArgs.cs
- ListenerElementsCollection.cs
- WebHttpBindingElement.cs
- DeleteMemberBinder.cs
- RotateTransform3D.cs
- TemplateXamlParser.cs
- TypeDescriptor.cs
- MenuItemCollection.cs
- DataRelation.cs
- DynamicDiscoSearcher.cs
- KeyValueInternalCollection.cs
- DesignerResources.cs
- Accessible.cs
- PageAdapter.cs
- PageAdapter.cs
- SoapMessage.cs
- DataGridViewLinkCell.cs
- IncomingWebRequestContext.cs
- ChannelSettingsElement.cs
- MemberExpressionHelper.cs
- BufferedMessageWriter.cs
- _ConnectStream.cs
- DataConnectionHelper.cs
- Directory.cs
- PointValueSerializer.cs
- PathTooLongException.cs
- TextParagraphCache.cs
- RootProfilePropertySettingsCollection.cs
- SafeHandles.cs
- XmlSchemaObject.cs
- TransactionScopeDesigner.cs
- HandlerBase.cs
- DataColumnMappingCollection.cs
- Fx.cs
- Root.cs
- DataGridViewComboBoxCell.cs
- Propagator.ExtentPlaceholderCreator.cs
- RegexStringValidatorAttribute.cs
- ColorContext.cs
- DataServiceClientException.cs
- ImageFormatConverter.cs
- DataGridViewImageColumn.cs
- ListViewItemMouseHoverEvent.cs
- ParsedAttributeCollection.cs
- DependencyObjectPropertyDescriptor.cs
- SqlRecordBuffer.cs
- CodeValidator.cs
- IndicFontClient.cs
- Normalization.cs
- SerialPinChanges.cs
- UnsafeNetInfoNativeMethods.cs
- HashStream.cs
- TextSerializer.cs
- XPathEmptyIterator.cs
- ComponentChangedEvent.cs
- NumberSubstitution.cs
- XPathArrayIterator.cs
- BitmapData.cs
- httpapplicationstate.cs
- x509utils.cs
- EmbeddedMailObject.cs
- _NestedSingleAsyncResult.cs
- SiteOfOriginContainer.cs
- DataObjectMethodAttribute.cs
- GraphicsContext.cs
- Button.cs
- UncommonField.cs
- XmlUrlResolver.cs
- DataViewSetting.cs
- MimeBasePart.cs
- Splitter.cs
- ExternalDataExchangeService.cs
- ServiceModelDictionary.cs
- AssemblyCollection.cs
- XmlCountingReader.cs
- WhiteSpaceTrimStringConverter.cs
- RepeatInfo.cs
- PngBitmapDecoder.cs
- Point.cs
- PropertyBuilder.cs
- ToolStripItemTextRenderEventArgs.cs
- StorageBasedPackageProperties.cs
- Message.cs