Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ // 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
- BufferedGraphicsContext.cs
- BooleanAnimationBase.cs
- WebPartAuthorizationEventArgs.cs
- WebConfigurationFileMap.cs
- HierarchicalDataBoundControl.cs
- WorkerRequest.cs
- PropertyGeneratedEventArgs.cs
- XmlValidatingReader.cs
- SimpleHandlerFactory.cs
- ValidateNames.cs
- StreamBodyWriter.cs
- XmlDocument.cs
- Scene3D.cs
- ThicknessAnimationUsingKeyFrames.cs
- ToolStripLocationCancelEventArgs.cs
- HtmlWindow.cs
- XmlValidatingReader.cs
- TdsParserSafeHandles.cs
- ProxySimple.cs
- AssociativeAggregationOperator.cs
- KoreanCalendar.cs
- DesignerDataTable.cs
- DocumentGridPage.cs
- CultureInfoConverter.cs
- SiteMapNodeCollection.cs
- AjaxFrameworkAssemblyAttribute.cs
- CheckedPointers.cs
- __Filters.cs
- QilTypeChecker.cs
- GeneratedCodeAttribute.cs
- WhiteSpaceTrimStringConverter.cs
- RelationalExpressions.cs
- SoapHeaderAttribute.cs
- MarkupCompilePass1.cs
- SocketAddress.cs
- RefreshPropertiesAttribute.cs
- CodeAttributeDeclarationCollection.cs
- IntSecurity.cs
- GridViewHeaderRowPresenter.cs
- RoutedEventValueSerializer.cs
- SortExpressionBuilder.cs
- DecimalConstantAttribute.cs
- Range.cs
- XmlUtilWriter.cs
- TransactionContextValidator.cs
- ClientConfigurationSystem.cs
- FontSizeConverter.cs
- OciEnlistContext.cs
- FontStretches.cs
- FormViewUpdatedEventArgs.cs
- ipaddressinformationcollection.cs
- OutputCacheEntry.cs
- __Filters.cs
- CodeExporter.cs
- TypeTypeConverter.cs
- StrokeNodeEnumerator.cs
- StrokeNodeEnumerator.cs
- TextRunCacheImp.cs
- SerializableAttribute.cs
- WebCodeGenerator.cs
- GPStream.cs
- TextBounds.cs
- FontUnitConverter.cs
- DynamicExpression.cs
- MultiDataTrigger.cs
- WindowsNonControl.cs
- EastAsianLunisolarCalendar.cs
- HttpRequest.cs
- StdValidatorsAndConverters.cs
- IdnMapping.cs
- SizeAnimationBase.cs
- DependencyPropertyValueSerializer.cs
- WindowsFont.cs
- DbTransaction.cs
- CodeGroup.cs
- XmlSchemaDatatype.cs
- SqlWriter.cs
- RepeatBehavior.cs
- Int32AnimationUsingKeyFrames.cs
- EtwProvider.cs
- SystemPens.cs
- StaticExtension.cs
- ConnectionPoint.cs
- Geometry3D.cs
- ExpressionEditorAttribute.cs
- WinFormsSecurity.cs
- WebPartConnectionsConfigureVerb.cs
- InfiniteIntConverter.cs
- TraceHwndHost.cs
- SystemEvents.cs
- LineSegment.cs
- Int32AnimationBase.cs
- QuaternionIndependentAnimationStorage.cs
- FixedSOMTable.cs
- AdornerLayer.cs
- ToolStripOverflow.cs
- KeyboardNavigation.cs
- ContractCodeDomInfo.cs
- SimpleWebHandlerParser.cs
- SoapProtocolImporter.cs