Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / System / Windows / Int32Rect.cs / 1305600 / Int32Rect.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2001, 2002 // // File: Int32Rect.cs //----------------------------------------------------------------------------- using System; using System.Diagnostics; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Reflection; using System.Text; using System.Collections; using System.Globalization; using MS.Internal; using System.Windows; using System.Windows.Media; using System.Runtime.InteropServices; using System.Security; using System.Security.Permissions; namespace System.Windows { ////// Int32Rect - The primitive which represents an integer rectangle. /// public partial struct Int32Rect { #region Constructors ////// Constructor which sets the initial values to the values of the parameters. /// public Int32Rect(Int32 x, Int32 y, Int32 width, Int32 height) { _x = x; _y = y; _width = width; _height = height; } #endregion Constructors #region Statics ////// Empty - a static property which provides an Empty Int32Rectangle. /// public static Int32Rect Empty { get { return s_empty; } } #endregion Statics #region Public Properties ////// IsEmpty - this returns true if this Int32Rect is the Empty integer rectangle. /// public bool IsEmpty { get { return (_x == 0) && (_y == 0) && (_width == 0) && (_height == 0); } } #endregion Public Properties #region Public Methods #endregion Private Methods #region Private Fields private readonly static Int32Rect s_empty = new Int32Rect(0,0,0,0); #endregion Private Fields } } // 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
- BufferedGraphicsManager.cs
- ZipIOBlockManager.cs
- XmlSiteMapProvider.cs
- MethodSignatureGenerator.cs
- GeneralTransform3DGroup.cs
- ToolStripItemEventArgs.cs
- DataObjectSettingDataEventArgs.cs
- Timeline.cs
- HiddenFieldPageStatePersister.cs
- FrameworkTextComposition.cs
- XmlSchemaIdentityConstraint.cs
- QilPatternFactory.cs
- CodeAttributeDeclaration.cs
- BitmapEffectDrawingContent.cs
- ResourcesBuildProvider.cs
- WebBrowserSiteBase.cs
- wgx_commands.cs
- DeferredSelectedIndexReference.cs
- KnownTypesHelper.cs
- XmlSchemaImport.cs
- BmpBitmapEncoder.cs
- FaultCallbackWrapper.cs
- MenuEventArgs.cs
- ParameterCollection.cs
- ConvertersCollection.cs
- ActivityStateQuery.cs
- PropertyBuilder.cs
- ListViewItemMouseHoverEvent.cs
- CursorConverter.cs
- httpstaticobjectscollection.cs
- WeakReferenceKey.cs
- ListBindableAttribute.cs
- RuntimeConfigurationRecord.cs
- SingleKeyFrameCollection.cs
- XmlDataProvider.cs
- StyleSelector.cs
- XmlNamespaceMappingCollection.cs
- SqlCrossApplyToCrossJoin.cs
- AbandonedMutexException.cs
- ToolStripStatusLabel.cs
- CollectionViewSource.cs
- StdValidatorsAndConverters.cs
- Point4D.cs
- BulletDecorator.cs
- TreeNodeMouseHoverEvent.cs
- DataGridAutomationPeer.cs
- SqlException.cs
- BamlVersionHeader.cs
- IdentityHolder.cs
- RecipientInfo.cs
- NativeMethods.cs
- MatrixTransform.cs
- FrameworkElement.cs
- AuthenticationModuleElementCollection.cs
- DocumentPageHost.cs
- HostingEnvironmentSection.cs
- TransformDescriptor.cs
- FlagsAttribute.cs
- Rfc4050KeyFormatter.cs
- WebBaseEventKeyComparer.cs
- DataGridPreparingCellForEditEventArgs.cs
- ExpressionEditorAttribute.cs
- DocumentPageTextView.cs
- ClaimTypes.cs
- KeyedCollection.cs
- UpdateExpressionVisitor.cs
- SspiNegotiationTokenProviderState.cs
- BrushProxy.cs
- Pen.cs
- Menu.cs
- UnknownWrapper.cs
- EnvironmentPermission.cs
- DesignerProperties.cs
- ConstructorBuilder.cs
- IsolatedStorageFile.cs
- ToolBarTray.cs
- MessageEnumerator.cs
- ComplexPropertyEntry.cs
- wgx_exports.cs
- FormsAuthenticationEventArgs.cs
- BindingContext.cs
- SQLSingleStorage.cs
- PenCursorManager.cs
- SqlClientWrapperSmiStream.cs
- PermissionToken.cs
- XpsViewerException.cs
- PropertyDescriptor.cs
- Deserializer.cs
- ProcessModelInfo.cs
- TextElementEnumerator.cs
- AsyncPostBackErrorEventArgs.cs
- StatusBarPanel.cs
- AddressingProperty.cs
- AsyncResult.cs
- PortCache.cs
- ParallelActivityDesigner.cs
- TreeViewImageKeyConverter.cs
- mediaeventargs.cs
- UnsafeNativeMethods.cs
- SafeCoTaskMem.cs