Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / KnownBoxes.cs / 1305600 / KnownBoxes.cs
using System;
using System.Windows;
using System.Windows.Controls;
namespace MS.Internal.KnownBoxes
{
internal class SizeBox
{
internal SizeBox(double width, double height)
{
if (width < 0 || height < 0)
{
throw new System.ArgumentException(SR.Get(SRID.Rect_WidthAndHeightCannotBeNegative));
}
_width = width;
_height = height;
}
internal SizeBox(Size size): this(size.Width, size.Height) {}
internal double Width
{
get
{
return _width;
}
set
{
if (value < 0)
{
throw new System.ArgumentException(SR.Get(SRID.Rect_WidthAndHeightCannotBeNegative));
}
_width = value;
}
}
internal double Height
{
get
{
return _height;
}
set
{
if (value < 0)
{
throw new System.ArgumentException(SR.Get(SRID.Rect_WidthAndHeightCannotBeNegative));
}
_height = value;
}
}
double _width;
double _height;
}
}
// 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
- XmlSecureResolver.cs
- ScriptResourceHandler.cs
- SeparatorAutomationPeer.cs
- Matrix.cs
- SerializationHelper.cs
- ObjectList.cs
- PenThreadPool.cs
- TextEffectResolver.cs
- PointLightBase.cs
- WeakReferenceList.cs
- ToolStripButton.cs
- PerformanceCounterManager.cs
- PropertyChangingEventArgs.cs
- ChtmlLinkAdapter.cs
- RenderingBiasValidation.cs
- PaperSize.cs
- TableLayoutStyleCollection.cs
- BamlWriter.cs
- HostedHttpRequestAsyncResult.cs
- RuntimeConfigLKG.cs
- MatrixTransform3D.cs
- ParameterCollection.cs
- SamlAdvice.cs
- ArcSegment.cs
- PointLightBase.cs
- StrokeCollectionDefaultValueFactory.cs
- WmfPlaceableFileHeader.cs
- PrintingPermission.cs
- SignatureConfirmations.cs
- Pointer.cs
- UserControl.cs
- DesignerLoader.cs
- Brush.cs
- BitmapImage.cs
- AuthenticateEventArgs.cs
- ToolStripTextBox.cs
- APCustomTypeDescriptor.cs
- CompilationUnit.cs
- BufferAllocator.cs
- VectorConverter.cs
- TraceUtility.cs
- ColorAnimationBase.cs
- ReadOnlyObservableCollection.cs
- XhtmlBasicLinkAdapter.cs
- ColorTranslator.cs
- UpdateTracker.cs
- AssemblyUtil.cs
- AuthenticationService.cs
- IPAddressCollection.cs
- DataGridTableCollection.cs
- ControlBindingsConverter.cs
- EditingCoordinator.cs
- RunInstallerAttribute.cs
- SynchronizationContext.cs
- Membership.cs
- HtmlLink.cs
- WinInet.cs
- WindowCollection.cs
- TypefaceCollection.cs
- DataObjectCopyingEventArgs.cs
- RightsManagementEncryptionTransform.cs
- DataServiceQueryContinuation.cs
- InternalTypeHelper.cs
- AnchoredBlock.cs
- DataGridViewRowPrePaintEventArgs.cs
- documentsequencetextcontainer.cs
- MLangCodePageEncoding.cs
- LogExtentCollection.cs
- UIElement3DAutomationPeer.cs
- X509Certificate2.cs
- ConfigXmlDocument.cs
- StreamUpdate.cs
- Calendar.cs
- PasswordBox.cs
- MultipartIdentifier.cs
- LocalizationParserHooks.cs
- CalendarDay.cs
- EventPropertyMap.cs
- Cursor.cs
- NetworkInterface.cs
- LinqDataSourceDisposeEventArgs.cs
- SimpleRecyclingCache.cs
- WmlValidationSummaryAdapter.cs
- RequiredAttributeAttribute.cs
- ParenExpr.cs
- DeflateEmulationStream.cs
- COM2TypeInfoProcessor.cs
- EditorPartCollection.cs
- StorageModelBuildProvider.cs
- ClientRuntimeConfig.cs
- ObjectDataSourceMethodEventArgs.cs
- OutputCacheModule.cs
- BreakRecordTable.cs
- SvcMapFileLoader.cs
- TransactionState.cs
- StackBuilderSink.cs
- FlowDocument.cs
- View.cs
- ListView.cs
- Evidence.cs