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
- Bezier.cs
- Container.cs
- SRef.cs
- SupportsPreviewControlAttribute.cs
- ValidationEventArgs.cs
- Point3DCollectionValueSerializer.cs
- BindingListCollectionView.cs
- APCustomTypeDescriptor.cs
- GlyphRun.cs
- AspNetSynchronizationContext.cs
- CounterSetInstanceCounterDataSet.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- DebugController.cs
- CookieProtection.cs
- ConnectionManagementElementCollection.cs
- TagPrefixCollection.cs
- XmlNamespaceDeclarationsAttribute.cs
- GenericEnumConverter.cs
- Lease.cs
- SqlBuffer.cs
- PassportAuthenticationEventArgs.cs
- EventPrivateKey.cs
- StateInitializationDesigner.cs
- HttpRequestCacheValidator.cs
- ErrorProvider.cs
- FixedFindEngine.cs
- CalendarDesigner.cs
- ButtonFieldBase.cs
- Random.cs
- MetroSerializationManager.cs
- DesignTimeVisibleAttribute.cs
- ListItemCollection.cs
- EventWaitHandle.cs
- NavigateEvent.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- NumberFunctions.cs
- FacetValueContainer.cs
- TitleStyle.cs
- ContentPlaceHolderDesigner.cs
- StringWriter.cs
- TypeContext.cs
- IgnoreDataMemberAttribute.cs
- ClientOptions.cs
- Pair.cs
- HashCodeCombiner.cs
- StagingAreaInputItem.cs
- DataContract.cs
- OperationCanceledException.cs
- HtmlEmptyTagControlBuilder.cs
- StatusBarPanel.cs
- Geometry.cs
- PropertySegmentSerializationProvider.cs
- ToolStripControlHost.cs
- MinMaxParagraphWidth.cs
- Context.cs
- DeferredTextReference.cs
- HScrollProperties.cs
- NotConverter.cs
- XmlQueryType.cs
- HWStack.cs
- SplitterEvent.cs
- ExpressionBindingCollection.cs
- DPTypeDescriptorContext.cs
- Point.cs
- EventProviderClassic.cs
- SqlBulkCopyColumnMapping.cs
- KeyProperty.cs
- TypeExtensions.cs
- DataGridState.cs
- fixedPageContentExtractor.cs
- XamlTypeMapper.cs
- CodeTypeDelegate.cs
- DesignerDeviceConfig.cs
- ToolStripSettings.cs
- CodeAttributeDeclaration.cs
- Operand.cs
- HostedHttpContext.cs
- OracleColumn.cs
- ExtenderProvidedPropertyAttribute.cs
- IndicCharClassifier.cs
- ButtonField.cs
- TableLayoutPanelBehavior.cs
- RoutedEventArgs.cs
- ToolStripHighContrastRenderer.cs
- ipaddressinformationcollection.cs
- SystemSounds.cs
- unitconverter.cs
- EntityDataSourceWrapperCollection.cs
- FileDialogCustomPlace.cs
- SizeAnimationUsingKeyFrames.cs
- _StreamFramer.cs
- BinaryParser.cs
- ByteStreamGeometryContext.cs
- ResourceAssociationTypeEnd.cs
- SatelliteContractVersionAttribute.cs
- ItemCollection.cs
- SqlBuffer.cs
- RectKeyFrameCollection.cs
- Rule.cs
- DataBinder.cs