Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPPOINT.cs / 1305376 / GPPOINT.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 class GPPOINT { internal int X; internal int Y; internal GPPOINT() { } internal GPPOINT(PointF pt) { X = (int) pt.X; Y = (int) pt.Y; } internal GPPOINT(Point pt) { X = pt.X; Y = 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. // //----------------------------------------------------------------------------- namespace System.Drawing.Internal { using System.Diagnostics; using System; using System.Drawing; using System.Runtime.InteropServices; [StructLayout(LayoutKind.Sequential)] internal class GPPOINT { internal int X; internal int Y; internal GPPOINT() { } internal GPPOINT(PointF pt) { X = (int) pt.X; Y = (int) pt.Y; } internal GPPOINT(Point pt) { X = pt.X; Y = pt.Y; } internal PointF ToPoint() { return new PointF(X, Y); } } } // 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
- MarshalByRefObject.cs
- ElementsClipboardData.cs
- MarkupExtensionSerializer.cs
- parserscommon.cs
- IgnoreFileBuildProvider.cs
- RtfToken.cs
- CompositeDataBoundControl.cs
- ImageSourceConverter.cs
- ContractBase.cs
- DbResourceAllocator.cs
- CheckBoxList.cs
- WindowsGraphicsCacheManager.cs
- HostProtectionException.cs
- ServiceModelActivationSectionGroup.cs
- PostBackOptions.cs
- WorkflowDesignerColors.cs
- InvalidateEvent.cs
- DataDocumentXPathNavigator.cs
- AnnotationResource.cs
- QueryOperationResponseOfT.cs
- DataGridCommandEventArgs.cs
- InfoCardTrace.cs
- QilVisitor.cs
- ObjectListFieldsPage.cs
- CoreSwitches.cs
- PngBitmapEncoder.cs
- CustomError.cs
- DebugInfoGenerator.cs
- X509SecurityToken.cs
- FontClient.cs
- IProvider.cs
- PresentationSource.cs
- XmlTextWriter.cs
- ContentValidator.cs
- DeploymentSectionCache.cs
- SurrogateEncoder.cs
- ProgressChangedEventArgs.cs
- ProtocolReflector.cs
- RealizationDrawingContextWalker.cs
- Constraint.cs
- DirectoryNotFoundException.cs
- Rect3DValueSerializer.cs
- PaperSource.cs
- InternalUserCancelledException.cs
- TagNameToTypeMapper.cs
- DbConnectionPoolGroupProviderInfo.cs
- CallbackValidatorAttribute.cs
- LoginDesigner.cs
- GrammarBuilder.cs
- StylusPointPropertyInfo.cs
- ToolStripPanelRow.cs
- AlphaSortedEnumConverter.cs
- ViewStateModeByIdAttribute.cs
- TextParagraphProperties.cs
- CredentialCache.cs
- GradientBrush.cs
- KeyValuePairs.cs
- ISO2022Encoding.cs
- GroupStyle.cs
- DictionaryEntry.cs
- LineBreakRecord.cs
- BlockCollection.cs
- XPathParser.cs
- ManipulationVelocities.cs
- ImageCodecInfo.cs
- PagesSection.cs
- cache.cs
- XmlReaderDelegator.cs
- TextServicesDisplayAttribute.cs
- QilReference.cs
- HttpAsyncResult.cs
- AutomationPattern.cs
- AsyncDataRequest.cs
- IPEndPoint.cs
- SystemKeyConverter.cs
- RestHandler.cs
- InvokeProviderWrapper.cs
- XXXInfos.cs
- MessagePropertyFilter.cs
- MarkupProperty.cs
- Error.cs
- SmiContextFactory.cs
- AliasedSlot.cs
- SymbolPair.cs
- ProxyElement.cs
- ScrollViewer.cs
- HttpMethodConstraint.cs
- SimpleType.cs
- Utils.cs
- ApplyTemplatesAction.cs
- cookiecollection.cs
- GenericsInstances.cs
- shaperfactoryquerycachekey.cs
- AnnotationResourceChangedEventArgs.cs
- DesignerTransactionCloseEvent.cs
- StartUpEventArgs.cs
- NamedObject.cs
- X509WindowsSecurityToken.cs
- WebPartCatalogAddVerb.cs
- Vector3D.cs