Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPRECTF.cs / 1 / GPRECTF.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /*************************************************************************\ * * Copyright (c) 1998-1999, Microsoft Corp. All Rights Reserved. * * Module Name: * * GPRECTF.cpp * * Abstract: * * Native GDI+ floating-point coordinate rectangle structure. * * Revision History: * * 12/14/1998 davidx * Created it. * \**************************************************************************/ 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExpressionBuilderCollection.cs
- CommunicationException.cs
- SeekableMessageNavigator.cs
- MemoryRecordBuffer.cs
- DataGridCell.cs
- RegexCharClass.cs
- BeginStoryboard.cs
- cryptoapiTransform.cs
- MultiTargetingUtil.cs
- OutputCacheSection.cs
- StateInitializationDesigner.cs
- ListViewTableCell.cs
- FileEnumerator.cs
- SecurityState.cs
- ObjectListFieldsPage.cs
- WebPartDisplayModeCancelEventArgs.cs
- DeflateStreamAsyncResult.cs
- DataGridBeginningEditEventArgs.cs
- XmlSchemaType.cs
- EventHandlersDesigner.cs
- ColorTransform.cs
- ExpressionWriter.cs
- ParameterToken.cs
- XmlIgnoreAttribute.cs
- ExpressionBinding.cs
- RadioButtonStandardAdapter.cs
- XmlAttributes.cs
- StringUtil.cs
- SqlParameterizer.cs
- ValidatorCompatibilityHelper.cs
- UidPropertyAttribute.cs
- SortedSet.cs
- CollectionCodeDomSerializer.cs
- JoinGraph.cs
- ResourcesBuildProvider.cs
- WorkerProcess.cs
- AccessDataSource.cs
- AssemblyHash.cs
- Profiler.cs
- ReservationCollection.cs
- PerfCounterSection.cs
- DataContractFormatAttribute.cs
- WebBaseEventKeyComparer.cs
- SoapClientProtocol.cs
- ExpressionConverter.cs
- EpmSourcePathSegment.cs
- MimeObjectFactory.cs
- DataControlField.cs
- Common.cs
- ArgumentException.cs
- MetadataItemCollectionFactory.cs
- TypeExtension.cs
- PositiveTimeSpanValidatorAttribute.cs
- TextInfo.cs
- DatasetMethodGenerator.cs
- EnumMember.cs
- XmlReflectionMember.cs
- ProfileService.cs
- ConnectionStringEditor.cs
- LinkedResourceCollection.cs
- VectorKeyFrameCollection.cs
- SettingsPropertyCollection.cs
- TemplateXamlTreeBuilder.cs
- InvalidEnumArgumentException.cs
- VScrollBar.cs
- PanelStyle.cs
- XappLauncher.cs
- Grid.cs
- MasterPage.cs
- ProtectedConfigurationSection.cs
- GetImportFileNameRequest.cs
- DataGridCellAutomationPeer.cs
- XmlSchemaComplexType.cs
- EntityCommandDefinition.cs
- RequestCacheManager.cs
- TagPrefixAttribute.cs
- ElementProxy.cs
- NotImplementedException.cs
- WebPartExportVerb.cs
- MetadataFile.cs
- ChunkedMemoryStream.cs
- httpapplicationstate.cs
- PersonalizationProviderCollection.cs
- XmlSchemaSimpleContentExtension.cs
- ProvidersHelper.cs
- TaiwanLunisolarCalendar.cs
- SoapServerMessage.cs
- HtmlElementCollection.cs
- PageStatePersister.cs
- MediaPlayerState.cs
- SystemIPGlobalProperties.cs
- XmlSchemaAttribute.cs
- HtmlButton.cs
- SiteOfOriginContainer.cs
- GridViewRowCollection.cs
- QueryReaderSettings.cs
- AvTraceDetails.cs
- EntityDataSourceState.cs
- ReturnEventArgs.cs
- ParallelTimeline.cs