Code:
/ FX-1434 / FX-1434 / 1.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
- Scheduler.cs
- Schema.cs
- LiteralSubsegment.cs
- WebPartTracker.cs
- SqlDataSourceCustomCommandEditor.cs
- UriExt.cs
- _SslStream.cs
- ClientTargetSection.cs
- Certificate.cs
- AppPool.cs
- SqlTransaction.cs
- RightsManagementPermission.cs
- XmlReflectionImporter.cs
- AttachmentService.cs
- RemotingSurrogateSelector.cs
- SafeNativeMethods.cs
- WebPartCatalogCloseVerb.cs
- COM2PropertyPageUITypeConverter.cs
- ZoneLinkButton.cs
- InkCanvasFeedbackAdorner.cs
- TemplatePropertyEntry.cs
- LineMetrics.cs
- IgnoreFileBuildProvider.cs
- StorageFunctionMapping.cs
- AuthenticationService.cs
- MemoryMappedViewAccessor.cs
- SqlWebEventProvider.cs
- XmlSchemaAppInfo.cs
- InstancePersistenceException.cs
- InstalledFontCollection.cs
- StringFunctions.cs
- EntityType.cs
- AnnotationHighlightLayer.cs
- MimeTypeAttribute.cs
- Permission.cs
- RefreshPropertiesAttribute.cs
- CheckBox.cs
- Graph.cs
- XmlHierarchicalDataSourceView.cs
- InvokeMemberBinder.cs
- MsiStyleLogWriter.cs
- ConfigXmlAttribute.cs
- MarkupCompiler.cs
- ResourceContainer.cs
- PointLight.cs
- NetPipeSection.cs
- DesignerVerbCollection.cs
- NativeMethods.cs
- HandlerElementCollection.cs
- View.cs
- PerformanceCounter.cs
- TransformerInfo.cs
- FlowDocumentPaginator.cs
- sqlmetadatafactory.cs
- XmlSerializationReader.cs
- Geometry3D.cs
- ValueSerializer.cs
- GregorianCalendar.cs
- ExceptionUtil.cs
- ListControl.cs
- PointConverter.cs
- BooleanExpr.cs
- X500Name.cs
- PasswordDeriveBytes.cs
- ProcessStartInfo.cs
- DescriptionCreator.cs
- OperandQuery.cs
- LinkLabel.cs
- NavigationProgressEventArgs.cs
- TemplateAction.cs
- BinaryMessageFormatter.cs
- DetailsViewUpdateEventArgs.cs
- ExcludePathInfo.cs
- TextSearch.cs
- PageRouteHandler.cs
- GrammarBuilderDictation.cs
- DecoderFallbackWithFailureFlag.cs
- EventMetadata.cs
- ApplicationFileCodeDomTreeGenerator.cs
- DPTypeDescriptorContext.cs
- QueryOutputWriter.cs
- FrameworkTemplate.cs
- GridViewItemAutomationPeer.cs
- DecoderFallback.cs
- HelpEvent.cs
- InkPresenter.cs
- InstanceDataCollection.cs
- DBSchemaTable.cs
- FunctionImportElement.cs
- mediaeventargs.cs
- XmlCountingReader.cs
- IpcPort.cs
- MaskedTextBoxTextEditorDropDown.cs
- FlowDocumentPaginator.cs
- ResourcesBuildProvider.cs
- ServicesExceptionNotHandledEventArgs.cs
- TextShapeableCharacters.cs
- BindableAttribute.cs
- TimeoutException.cs
- PieceNameHelper.cs