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
- XmlUtf8RawTextWriter.cs
- DescriptionAttribute.cs
- ScriptManager.cs
- PolyLineSegmentFigureLogic.cs
- MultiPageTextView.cs
- SqlWorkflowInstanceStore.cs
- EntitySqlException.cs
- TextServicesContext.cs
- ComponentSerializationService.cs
- DocumentApplicationJournalEntry.cs
- ICollection.cs
- CustomErrorsSection.cs
- unitconverter.cs
- SelectionRange.cs
- SubqueryTrackingVisitor.cs
- Pen.cs
- UrlPropertyAttribute.cs
- ElementNotAvailableException.cs
- UIElement.cs
- PcmConverter.cs
- ZipFileInfo.cs
- LayoutEditorPart.cs
- ComboBox.cs
- WpfSharedBamlSchemaContext.cs
- ProfileGroupSettingsCollection.cs
- FileDialogCustomPlacesCollection.cs
- SlipBehavior.cs
- ThreadStaticAttribute.cs
- CodeIdentifier.cs
- ConfigurationCollectionAttribute.cs
- RemotingConfigParser.cs
- StateValidator.cs
- DriveInfo.cs
- CorrelationRequestContext.cs
- DefaultEventAttribute.cs
- AssemblyAttributes.cs
- ExpandCollapseProviderWrapper.cs
- X509Certificate.cs
- XmlQualifiedNameTest.cs
- DocumentViewerBaseAutomationPeer.cs
- PreProcessInputEventArgs.cs
- CqlParser.cs
- RuntimeCompatibilityAttribute.cs
- DataObject.cs
- BaseAddressElementCollection.cs
- FormatException.cs
- DataGridLinkButton.cs
- updateconfighost.cs
- NominalTypeEliminator.cs
- StatusStrip.cs
- OverflowException.cs
- TypeDescriptorContext.cs
- RequestCacheEntry.cs
- ScriptDescriptor.cs
- PaperSize.cs
- VarInfo.cs
- WsatRegistrationHeader.cs
- XmlDocumentSerializer.cs
- StyleTypedPropertyAttribute.cs
- DataRowExtensions.cs
- ParserHooks.cs
- MobileResource.cs
- Walker.cs
- AdRotator.cs
- WebRequestModuleElement.cs
- InfoCardBinaryReader.cs
- EventsTab.cs
- CSharpCodeProvider.cs
- _LocalDataStoreMgr.cs
- PrintDialog.cs
- AuthenticationConfig.cs
- XmlSchemaException.cs
- CompilerResults.cs
- TrustManager.cs
- SafeEventLogWriteHandle.cs
- SqlNotificationRequest.cs
- FixedStringLookup.cs
- Track.cs
- CultureSpecificCharacterBufferRange.cs
- SetterBase.cs
- XmlElement.cs
- ExceptionUtil.cs
- ChangeConflicts.cs
- TreeNodeCollectionEditor.cs
- HebrewNumber.cs
- EventProxy.cs
- SqlTriggerAttribute.cs
- SocketCache.cs
- BrowserCapabilitiesFactoryBase.cs
- NumberSubstitution.cs
- wmiprovider.cs
- XPathException.cs
- PropertyIDSet.cs
- HwndTarget.cs
- ListSourceHelper.cs
- RayHitTestParameters.cs
- ParseHttpDate.cs
- ServerType.cs
- NonVisualControlAttribute.cs
- AsyncResult.cs