Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPRECT.cs / 1 / GPRECT.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /*************************************************************************\ * * Copyright (c) 1998-1999, Microsoft Corp. All Rights Reserved. * * Module Name: * * GPRECT.cpp * * Abstract: * * Native GDI+ integer 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 GPRECT { internal int X; internal int Y; internal int Width; internal int Height; internal GPRECT(int x, int y, int width, int height) { X = x; Y = y; Width = width; Height = height; } internal GPRECT(Rectangle rect) { X = rect.X; Y = rect.Y; Width = rect.Width; Height = rect.Height; } internal Rectangle ToRectangle() { return new Rectangle(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
- TextStore.cs
- StructuredTypeInfo.cs
- Automation.cs
- TextPointer.cs
- ExpandCollapsePatternIdentifiers.cs
- dsa.cs
- RoutedPropertyChangedEventArgs.cs
- OdbcConnectionPoolProviderInfo.cs
- StylusPointPropertyInfoDefaults.cs
- JavaScriptObjectDeserializer.cs
- DifferencingCollection.cs
- EntityContainerRelationshipSetEnd.cs
- Utilities.cs
- Point3DCollectionValueSerializer.cs
- SemanticTag.cs
- wmiutil.cs
- Matrix3D.cs
- HostingEnvironment.cs
- BitmapFrameEncode.cs
- WhitespaceRule.cs
- SafeUserTokenHandle.cs
- PEFileReader.cs
- CompoundFileStorageReference.cs
- ParsedRoute.cs
- SettingsContext.cs
- BitmapEffectDrawingContextState.cs
- SafeReversePInvokeHandle.cs
- xdrvalidator.cs
- SHA1CryptoServiceProvider.cs
- WindowsGraphics2.cs
- SecurityHelper.cs
- ContainerActivationHelper.cs
- TypeUtil.cs
- KeyGesture.cs
- EnumMemberAttribute.cs
- Speller.cs
- PagesSection.cs
- Rectangle.cs
- CommandID.cs
- ConfigurationManagerHelperFactory.cs
- SegmentInfo.cs
- WinCategoryAttribute.cs
- TraceSection.cs
- Icon.cs
- ThrowHelper.cs
- WebRequestModuleElement.cs
- FlagsAttribute.cs
- AgileSafeNativeMemoryHandle.cs
- PartialTrustHelpers.cs
- AcceleratedTokenProviderState.cs
- DataGridTextBoxColumn.cs
- WebConfigurationHost.cs
- DataGridRow.cs
- CodeVariableReferenceExpression.cs
- SecurityTokenProviderContainer.cs
- MetafileHeader.cs
- ChtmlTextWriter.cs
- OdbcCommand.cs
- Win32SafeHandles.cs
- Set.cs
- IndependentAnimationStorage.cs
- ColorBlend.cs
- CurrencyWrapper.cs
- ExecutionContext.cs
- SqlBuffer.cs
- DateRangeEvent.cs
- XslAst.cs
- AssemblyCollection.cs
- PenThreadPool.cs
- CodeSnippetExpression.cs
- PointConverter.cs
- ClientTarget.cs
- Base64Stream.cs
- HtmlWindowCollection.cs
- LogEntryHeaderv1Deserializer.cs
- COSERVERINFO.cs
- TemplatePropertyEntry.cs
- CodeSnippetTypeMember.cs
- DynamicActivityProperty.cs
- TemplateBuilder.cs
- HtmlElementErrorEventArgs.cs
- AttachmentService.cs
- OracleDataAdapter.cs
- TableCellAutomationPeer.cs
- LinkArea.cs
- ScrollProperties.cs
- ResolvedKeyFrameEntry.cs
- BamlWriter.cs
- EditorPartCollection.cs
- StringFreezingAttribute.cs
- ClientOptions.cs
- Activity.cs
- Rotation3DAnimationBase.cs
- TextSegment.cs
- FilterEventArgs.cs
- MatrixKeyFrameCollection.cs
- XmlSchemaAttributeGroupRef.cs
- ActionMismatchAddressingException.cs
- GeneralTransform3D.cs
- UrlPropertyAttribute.cs