Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Base / System / Windows / Int32Rect.cs / 1 / 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. //------------------------------------------------------------------------------ // 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
- DataGridRowDetailsEventArgs.cs
- ExpressionConverter.cs
- HttpBrowserCapabilitiesWrapper.cs
- Point3DCollection.cs
- TableCellCollection.cs
- MsmqIntegrationSecurity.cs
- XmlEncoding.cs
- ToolTipAutomationPeer.cs
- SynchronizationContext.cs
- LinqDataSourceContextEventArgs.cs
- XmlProcessingInstruction.cs
- ProvidersHelper.cs
- _CookieModule.cs
- BaseDataListPage.cs
- ObjectPersistData.cs
- SqlStream.cs
- WriteTimeStream.cs
- XamlBrushSerializer.cs
- WebServiceFaultDesigner.cs
- UIElementAutomationPeer.cs
- ListViewDeleteEventArgs.cs
- CharacterBufferReference.cs
- BulletedList.cs
- WindowsSecurityTokenAuthenticator.cs
- GacUtil.cs
- FilteredAttributeCollection.cs
- DescendantQuery.cs
- EntitySetBase.cs
- DateTimeConverter2.cs
- CharEnumerator.cs
- TrustManager.cs
- OdbcUtils.cs
- TransportDefaults.cs
- x509store.cs
- ObjectComplexPropertyMapping.cs
- TemplateInstanceAttribute.cs
- PenThread.cs
- UnknownBitmapDecoder.cs
- VisualProxy.cs
- WebUtil.cs
- DataObjectCopyingEventArgs.cs
- PermissionListSet.cs
- HttpWebRequest.cs
- ButtonFieldBase.cs
- RoleGroupCollection.cs
- UnionExpr.cs
- ServicePointManagerElement.cs
- BaseCodePageEncoding.cs
- BaseProcessor.cs
- VisualStyleElement.cs
- EmbeddedMailObject.cs
- LeftCellWrapper.cs
- HwndHost.cs
- PolicyManager.cs
- WebEventTraceProvider.cs
- Command.cs
- UniqueConstraint.cs
- InternalTypeHelper.cs
- DataPager.cs
- ImageClickEventArgs.cs
- ContentType.cs
- Debugger.cs
- RepeaterItem.cs
- TreeViewHitTestInfo.cs
- SiteMapProvider.cs
- ArrangedElement.cs
- FormClosedEvent.cs
- WebPartHeaderCloseVerb.cs
- InvalidWMPVersionException.cs
- ElementMarkupObject.cs
- AppDomainManager.cs
- RenderDataDrawingContext.cs
- BasicHttpMessageSecurityElement.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- ComponentEditorPage.cs
- SourceFilter.cs
- DataGridViewCellPaintingEventArgs.cs
- RoleManagerEventArgs.cs
- PopupEventArgs.cs
- TableProviderWrapper.cs
- xml.cs
- initElementDictionary.cs
- MsmqException.cs
- LinqDataSourceUpdateEventArgs.cs
- LeaseManager.cs
- BamlRecordReader.cs
- FontFamilyValueSerializer.cs
- DataListItemEventArgs.cs
- XmlName.cs
- ArithmeticLiteral.cs
- WmlTextBoxAdapter.cs
- TreeViewDataItemAutomationPeer.cs
- CommunicationObjectFaultedException.cs
- SelectionRangeConverter.cs
- X500Name.cs
- Pen.cs
- SingleResultAttribute.cs
- WindowsStartMenu.cs
- ContextMenuStripActionList.cs
- RawStylusInputCustomData.cs