Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPPOINTF.cs / 1305376 / GPPOINTF.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 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypedElement.cs
- AutoGeneratedField.cs
- RuntimeWrappedException.cs
- NotEqual.cs
- DataGridViewRowEventArgs.cs
- ContextMenuAutomationPeer.cs
- CreateSequenceResponse.cs
- SID.cs
- MissingSatelliteAssemblyException.cs
- RightsManagementEncryptedStream.cs
- SystemIPInterfaceProperties.cs
- GenericTypeParameterBuilder.cs
- TabItemAutomationPeer.cs
- UserUseLicenseDictionaryLoader.cs
- TreeNode.cs
- DatasetMethodGenerator.cs
- AnnotationAdorner.cs
- SuppressIldasmAttribute.cs
- ImageCollectionEditor.cs
- BitmapFrameEncode.cs
- RequiredAttributeAttribute.cs
- DeclaredTypeValidatorAttribute.cs
- TimeSpan.cs
- DesignObjectWrapper.cs
- TypeSource.cs
- WorkflowDesignerMessageFilter.cs
- CFGGrammar.cs
- Size.cs
- ScriptingSectionGroup.cs
- Normalization.cs
- StyleCollectionEditor.cs
- NameObjectCollectionBase.cs
- HttpCacheVaryByContentEncodings.cs
- AutomationPatternInfo.cs
- ToolStripOverflowButton.cs
- FixedTextBuilder.cs
- ListViewHitTestInfo.cs
- FormViewDeletedEventArgs.cs
- DataServiceEntityAttribute.cs
- TemplateApplicationHelper.cs
- RefType.cs
- Matrix3DConverter.cs
- ConfigXmlComment.cs
- Group.cs
- BooleanStorage.cs
- BindingGroup.cs
- Int32.cs
- OracleDateTime.cs
- SBCSCodePageEncoding.cs
- JapaneseCalendar.cs
- SqlErrorCollection.cs
- Label.cs
- exports.cs
- IRCollection.cs
- Span.cs
- Decoder.cs
- EdmSchemaError.cs
- ImageBrush.cs
- HandleRef.cs
- MemberDescriptor.cs
- ContextMenuAutomationPeer.cs
- autovalidator.cs
- ImportCatalogPart.cs
- LifetimeServices.cs
- ParallelTimeline.cs
- HexParser.cs
- NamespaceQuery.cs
- ObjectAnimationBase.cs
- DummyDataSource.cs
- TemplateDefinition.cs
- XmlAttributes.cs
- UserControlCodeDomTreeGenerator.cs
- ByteAnimation.cs
- XamlInt32CollectionSerializer.cs
- DatasetMethodGenerator.cs
- DataConnectionHelper.cs
- MobileUITypeEditor.cs
- DesignerTransactionCloseEvent.cs
- LongMinMaxAggregationOperator.cs
- cache.cs
- MimeMultiPart.cs
- StrokeFIndices.cs
- DebuggerAttributes.cs
- VirtualStackFrame.cs
- StringDictionaryCodeDomSerializer.cs
- TypedAsyncResult.cs
- MessageTraceRecord.cs
- ClosureBinding.cs
- AutomationPropertyInfo.cs
- HttpAsyncResult.cs
- XPathNodeHelper.cs
- FormsAuthenticationEventArgs.cs
- XmlLangPropertyAttribute.cs
- ProcessActivityTreeOptions.cs
- HelpKeywordAttribute.cs
- HMAC.cs
- HtmlTextBoxAdapter.cs
- TextLine.cs
- IntPtr.cs
- SHA512.cs