Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPRECT.cs / 2 / GPRECT.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 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypeCodeDomSerializer.cs
- Message.cs
- ActionFrame.cs
- InstanceNormalEvent.cs
- EventSourceCreationData.cs
- DataBoundControlHelper.cs
- UncommonField.cs
- DataColumnSelectionConverter.cs
- TextDpi.cs
- DataGridSortCommandEventArgs.cs
- OrderedHashRepartitionStream.cs
- ObjectViewQueryResultData.cs
- UnaryQueryOperator.cs
- KeyFrames.cs
- DetailsViewAutoFormat.cs
- DbConnectionHelper.cs
- TimelineGroup.cs
- XamlReader.cs
- Parameter.cs
- TextStore.cs
- WebConvert.cs
- TextProperties.cs
- Int64AnimationBase.cs
- EntityCollection.cs
- TypefaceMap.cs
- DropShadowEffect.cs
- XPathQilFactory.cs
- StaticResourceExtension.cs
- BitmapMetadataBlob.cs
- FlowLayoutSettings.cs
- CacheEntry.cs
- SQLBytes.cs
- TemplateField.cs
- SqlMethodTransformer.cs
- FileDialog.cs
- QilParameter.cs
- FieldBuilder.cs
- TextWriterTraceListener.cs
- _SSPIWrapper.cs
- IPipelineRuntime.cs
- COM2ExtendedUITypeEditor.cs
- LocatorPartList.cs
- ConsoleCancelEventArgs.cs
- DefaultWorkflowSchedulerService.cs
- SystemWebSectionGroup.cs
- XmlTextEncoder.cs
- GridViewCellAutomationPeer.cs
- DataServiceQueryProvider.cs
- ReflectionServiceProvider.cs
- SendMailErrorEventArgs.cs
- Wildcard.cs
- ResourceContainer.cs
- InputLanguageEventArgs.cs
- IndexedString.cs
- MenuStrip.cs
- Stack.cs
- HwndSource.cs
- ReadingWritingEntityEventArgs.cs
- LazyTextWriterCreator.cs
- ObjectHandle.cs
- ApplicationSettingsBase.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- updatecommandorderer.cs
- PolicyLevel.cs
- TypeSystemProvider.cs
- EnlistmentState.cs
- MappingSource.cs
- TextEditorLists.cs
- HtmlInputReset.cs
- InternalPermissions.cs
- ReaderWriterLock.cs
- KeyValueConfigurationCollection.cs
- Native.cs
- EdmRelationshipRoleAttribute.cs
- HelpHtmlBuilder.cs
- RelOps.cs
- StringCollection.cs
- TraceData.cs
- MustUnderstandBehavior.cs
- ExpressionDumper.cs
- RequestCachePolicy.cs
- SelectedGridItemChangedEvent.cs
- CompositeTypefaceMetrics.cs
- Model3DGroup.cs
- CompiledQueryCacheKey.cs
- ProfessionalColors.cs
- InputBuffer.cs
- MobileResource.cs
- fixedPageContentExtractor.cs
- TextSegment.cs
- PersistenceProviderFactory.cs
- cookie.cs
- XmlSchemaValidator.cs
- ArraySortHelper.cs
- BaseProcessor.cs
- WebSysDefaultValueAttribute.cs
- ResourceDictionaryCollection.cs
- PartitionResolver.cs
- FileClassifier.cs
- WmiEventSink.cs