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
- LogicalExpressionTypeConverter.cs
- TimeSpanSecondsConverter.cs
- RegistryPermission.cs
- TraceHandlerErrorFormatter.cs
- ProcessHostConfigUtils.cs
- IISMapPath.cs
- WindowsNonControl.cs
- GlyphRunDrawing.cs
- WmlValidationSummaryAdapter.cs
- DataControlFieldHeaderCell.cs
- SqlCommandSet.cs
- HTMLTagNameToTypeMapper.cs
- IWorkflowDebuggerService.cs
- StyleTypedPropertyAttribute.cs
- Matrix3DStack.cs
- Nullable.cs
- CodeMethodMap.cs
- NamedObject.cs
- InternalDispatchObject.cs
- TemplateLookupAction.cs
- WebPartVerbsEventArgs.cs
- SqlClientWrapperSmiStream.cs
- SiteMembershipCondition.cs
- StateChangeEvent.cs
- FacetValues.cs
- DataGridRowAutomationPeer.cs
- TextModifier.cs
- SemanticValue.cs
- MulticastDelegate.cs
- IdentitySection.cs
- Keywords.cs
- ProgressBar.cs
- ButtonBaseAutomationPeer.cs
- DbFunctionCommandTree.cs
- Metadata.cs
- BamlBinaryWriter.cs
- GenericQueueSurrogate.cs
- FormViewPagerRow.cs
- ComponentManagerBroker.cs
- NamespaceDecl.cs
- ChtmlTextWriter.cs
- ToolStripSplitStackLayout.cs
- XmlDictionaryString.cs
- SrgsElementFactory.cs
- LabelEditEvent.cs
- ButtonFieldBase.cs
- AutomationProperty.cs
- XmlDataSource.cs
- WebPartEditorApplyVerb.cs
- TreeViewImageIndexConverter.cs
- DbProviderServices.cs
- WebPartEditorApplyVerb.cs
- HandlerWithFactory.cs
- FrameworkContentElementAutomationPeer.cs
- SqlUdtInfo.cs
- DataPointer.cs
- UpDownEvent.cs
- FormatSettings.cs
- RenameRuleObjectDialog.Designer.cs
- WaitForChangedResult.cs
- Enum.cs
- Assembly.cs
- IntegerFacetDescriptionElement.cs
- ClientScriptManagerWrapper.cs
- GZipDecoder.cs
- TransformPatternIdentifiers.cs
- Line.cs
- mediaclock.cs
- ManagementEventWatcher.cs
- IdentitySection.cs
- DataRowExtensions.cs
- SqlRowUpdatedEvent.cs
- IPipelineRuntime.cs
- WindowsScroll.cs
- TreeView.cs
- QueryStack.cs
- DocobjHost.cs
- SafeUserTokenHandle.cs
- EntityDataSourceDataSelectionPanel.cs
- DataGridViewCellCancelEventArgs.cs
- DbModificationClause.cs
- ExcCanonicalXml.cs
- ServiceHttpModule.cs
- SoapHttpTransportImporter.cs
- EntitySqlQueryCacheEntry.cs
- WebConfigurationFileMap.cs
- ErrorInfoXmlDocument.cs
- CodeIndexerExpression.cs
- PackageRelationship.cs
- COM2ExtendedTypeConverter.cs
- CollectionViewProxy.cs
- PropertyValueUIItem.cs
- DeclaredTypeValidatorAttribute.cs
- webproxy.cs
- GridViewRowCollection.cs
- XmlSchemaValidationException.cs
- DependencyPropertyChangedEventArgs.cs
- ObjectStorage.cs
- BuildProviderCollection.cs
- Variable.cs