Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPPOINTF.cs / 1 / GPPOINTF.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /*************************************************************************\ * * Copyright (c) 1998-1999, Microsoft Corp. All Rights Reserved. * * Module Name: * * GPPOINTF.cpp * * Abstract: * * Native GDI+ floating-point coordinate point 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 class GPPOINTF { internal float X; internal float Y; internal GPPOINTF() { } internal GPPOINTF(PointF pt) { X = pt.X; Y = pt.Y; } internal GPPOINTF(Point pt) { X = (float) pt.X; Y = (float) pt.Y; } internal PointF ToPoint() { return new PointF(X, Y); } } } // 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
- FieldTemplateUserControl.cs
- SqlClientMetaDataCollectionNames.cs
- streamingZipPartStream.cs
- KeyManager.cs
- GridViewPageEventArgs.cs
- ConfigurationManagerHelperFactory.cs
- RequestSecurityTokenResponse.cs
- MenuItemStyle.cs
- XmlAttributes.cs
- Reference.cs
- SpeechEvent.cs
- Dictionary.cs
- MemberMaps.cs
- CreationContext.cs
- OperationDescription.cs
- ReadOnlyDataSource.cs
- Literal.cs
- ITextView.cs
- NativeWindow.cs
- DeploymentExceptionMapper.cs
- DiagnosticsConfiguration.cs
- Delegate.cs
- SimpleTableProvider.cs
- XmlSerializer.cs
- Regex.cs
- NameValueFileSectionHandler.cs
- configsystem.cs
- TabItemAutomationPeer.cs
- ProviderConnectionPoint.cs
- ExpressionBuilderCollection.cs
- UnsafeCollabNativeMethods.cs
- AudioDeviceOut.cs
- Function.cs
- TabControlEvent.cs
- TextServicesLoader.cs
- MultipleViewProviderWrapper.cs
- BitmapEffectDrawingContextWalker.cs
- TileBrush.cs
- MissingMethodException.cs
- TextRangeEditTables.cs
- URLString.cs
- UInt16Converter.cs
- FilterableAttribute.cs
- RepeatBehaviorConverter.cs
- ConfigurationManagerInternal.cs
- WindowsImpersonationContext.cs
- EntityWithChangeTrackerStrategy.cs
- SequenceNumber.cs
- BamlMapTable.cs
- ResourceExpression.cs
- RegisteredScript.cs
- CatalogPartDesigner.cs
- MenuItemAutomationPeer.cs
- TextParagraph.cs
- XmlTextReaderImplHelpers.cs
- Facet.cs
- AssemblyBuilderData.cs
- ResourceContainer.cs
- PropertiesTab.cs
- UnknownBitmapDecoder.cs
- SystemInfo.cs
- SparseMemoryStream.cs
- ByteAnimation.cs
- RepeaterCommandEventArgs.cs
- TextEndOfLine.cs
- ParseHttpDate.cs
- MemberNameValidator.cs
- TreeViewItem.cs
- HostExecutionContextManager.cs
- DrawListViewColumnHeaderEventArgs.cs
- Accessible.cs
- TextTreeTextElementNode.cs
- WebControlAdapter.cs
- Win32SafeHandles.cs
- DSASignatureFormatter.cs
- StackOverflowException.cs
- GridViewPageEventArgs.cs
- SharedPerformanceCounter.cs
- BoolExpressionVisitors.cs
- DbCommandTree.cs
- UrlAuthFailureHandler.cs
- DocumentXPathNavigator.cs
- SecureUICommand.cs
- CollectionChangeEventArgs.cs
- RuntimeHelpers.cs
- SingleResultAttribute.cs
- XmlSchemaAll.cs
- DockEditor.cs
- DesignTimeData.cs
- ContextProperty.cs
- BoolExpression.cs
- PartialCachingAttribute.cs
- ColorTransformHelper.cs
- IPipelineRuntime.cs
- XPathAxisIterator.cs
- AssemblyBuilder.cs
- Padding.cs
- HotSpot.cs
- GeometryGroup.cs
- RegexStringValidator.cs