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
- PropertyValue.cs
- AccessedThroughPropertyAttribute.cs
- PerfCounters.cs
- ComboBox.cs
- SRDisplayNameAttribute.cs
- PathTooLongException.cs
- Converter.cs
- DataColumn.cs
- ListParaClient.cs
- RepeatBehavior.cs
- HGlobalSafeHandle.cs
- _UriSyntax.cs
- DateRangeEvent.cs
- SafeSystemMetrics.cs
- FileLogRecordStream.cs
- SslSecurityTokenParameters.cs
- WindowHideOrCloseTracker.cs
- ProfileServiceManager.cs
- MetabaseServerConfig.cs
- FlowDocumentReader.cs
- CharStorage.cs
- ConfigurationSectionGroup.cs
- FixedDSBuilder.cs
- FormsAuthenticationUser.cs
- TypeAccessException.cs
- ToolStripDropDownClosedEventArgs.cs
- DotExpr.cs
- TypeCacheManager.cs
- CustomAttributeSerializer.cs
- XPathNodeList.cs
- DetailsViewDeleteEventArgs.cs
- SspiNegotiationTokenAuthenticator.cs
- SoapDocumentMethodAttribute.cs
- AlternationConverter.cs
- ObjectViewListener.cs
- TriState.cs
- IteratorDescriptor.cs
- HttpStreamMessage.cs
- LocatorBase.cs
- DoubleSumAggregationOperator.cs
- CallbackBehaviorAttribute.cs
- ServicePointManagerElement.cs
- DataControlLinkButton.cs
- PackWebRequestFactory.cs
- CodeMethodInvokeExpression.cs
- HealthMonitoringSectionHelper.cs
- ICspAsymmetricAlgorithm.cs
- RelationshipDetailsCollection.cs
- GACMembershipCondition.cs
- _NetworkingPerfCounters.cs
- LayoutEditorPart.cs
- DoubleKeyFrameCollection.cs
- ConfigurationPermission.cs
- SmiSettersStream.cs
- FileIOPermission.cs
- InstanceCreationEditor.cs
- StandardBindingImporter.cs
- PrinterUnitConvert.cs
- DotExpr.cs
- SourceFileBuildProvider.cs
- XslException.cs
- ContextBase.cs
- XmlRawWriterWrapper.cs
- NativeActivityAbortContext.cs
- DataGridViewBindingCompleteEventArgs.cs
- Int32AnimationBase.cs
- ProcessHost.cs
- BindMarkupExtensionSerializer.cs
- MultiBinding.cs
- XmlDigitalSignatureProcessor.cs
- UserControlDocumentDesigner.cs
- Matrix3DConverter.cs
- Faults.cs
- ManipulationInertiaStartingEventArgs.cs
- HitTestResult.cs
- CompilerGeneratedAttribute.cs
- XPathNodeHelper.cs
- SqlDataSourceSelectingEventArgs.cs
- HttpWebRequest.cs
- EnumMember.cs
- FixedSOMSemanticBox.cs
- DataObjectSettingDataEventArgs.cs
- BaseParser.cs
- DefaultWorkflowTransactionService.cs
- AuthenticateEventArgs.cs
- Interlocked.cs
- StandardToolWindows.cs
- PointValueSerializer.cs
- DecoderExceptionFallback.cs
- WindowsStartMenu.cs
- NoClickablePointException.cs
- GradientStopCollection.cs
- DeploymentSection.cs
- grammarelement.cs
- EventPrivateKey.cs
- HttpCookieCollection.cs
- ChtmlMobileTextWriter.cs
- ApplicationDirectoryMembershipCondition.cs
- DependencyPropertyKey.cs
- GeometryGroup.cs