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
- SerializationException.cs
- DataServiceStreamResponse.cs
- SmtpException.cs
- WhitespaceRule.cs
- SafeArrayRankMismatchException.cs
- Component.cs
- ExitEventArgs.cs
- IntranetCredentialPolicy.cs
- MessageLoggingFilterTraceRecord.cs
- X509Chain.cs
- WinFormsComponentEditor.cs
- CultureInfoConverter.cs
- FileChangesMonitor.cs
- XPathNavigatorKeyComparer.cs
- CodeMemberMethod.cs
- CodeObjectCreateExpression.cs
- InputMethodStateChangeEventArgs.cs
- DependencyPropertyHelper.cs
- ClientRuntimeConfig.cs
- DataControlField.cs
- ExpressionBinding.cs
- input.cs
- IndexingContentUnit.cs
- FtpWebResponse.cs
- XmlSchemaAttributeGroup.cs
- bidPrivateBase.cs
- BamlTreeNode.cs
- SynchronizationLockException.cs
- ObjectTag.cs
- FixedSOMPageConstructor.cs
- RuleSettings.cs
- ScaleTransform.cs
- ExceptionRoutedEventArgs.cs
- Expressions.cs
- DrawingGroup.cs
- HttpVersion.cs
- PeerCollaboration.cs
- ComAwareEventInfo.cs
- EntryPointNotFoundException.cs
- TracedNativeMethods.cs
- SmiMetaDataProperty.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- Visitors.cs
- EventBuilder.cs
- WorkflowRuntimeService.cs
- objectresult_tresulttype.cs
- safex509handles.cs
- ConfigurationFileMap.cs
- ManifestResourceInfo.cs
- NavigationPropertyEmitter.cs
- PathSegmentCollection.cs
- WebMessageEncodingElement.cs
- ProxyGenerator.cs
- ElementProxy.cs
- CaretElement.cs
- PropertyMappingExceptionEventArgs.cs
- PtsContext.cs
- Underline.cs
- EntityViewGenerationAttribute.cs
- VectorCollectionValueSerializer.cs
- DataObjectFieldAttribute.cs
- XmlSortKeyAccumulator.cs
- WebPageTraceListener.cs
- FontResourceCache.cs
- SearchForVirtualItemEventArgs.cs
- ComboBoxHelper.cs
- ellipse.cs
- SqlDataReader.cs
- PrintPreviewGraphics.cs
- ObjectDataSourceEventArgs.cs
- BadImageFormatException.cs
- EmptyReadOnlyDictionaryInternal.cs
- TableLayoutSettingsTypeConverter.cs
- XmlSchemaAnyAttribute.cs
- NumberEdit.cs
- COM2FontConverter.cs
- ProgressChangedEventArgs.cs
- MonthCalendar.cs
- AutomationEventArgs.cs
- FatalException.cs
- ZipIOExtraFieldElement.cs
- LinearQuaternionKeyFrame.cs
- ListDependantCardsRequest.cs
- OrderedDictionaryStateHelper.cs
- XslException.cs
- MenuItemStyleCollectionEditor.cs
- DataRowCollection.cs
- ScriptMethodAttribute.cs
- RequestBringIntoViewEventArgs.cs
- ArrangedElement.cs
- RelationalExpressions.cs
- _ChunkParse.cs
- WebFaultClientMessageInspector.cs
- Executor.cs
- EncodingInfo.cs
- Inflater.cs
- SoapFormatter.cs
- ElementHostPropertyMap.cs
- ClosableStream.cs
- MexHttpBindingCollectionElement.cs