Code:
/ 4.0 / 4.0 / 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. 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
- QueryResults.cs
- ProfessionalColorTable.cs
- ApplicationTrust.cs
- ListenerAdapterBase.cs
- SortedDictionary.cs
- IncrementalHitTester.cs
- DivideByZeroException.cs
- regiisutil.cs
- SecurityDescriptor.cs
- BaseParagraph.cs
- DataObjectSettingDataEventArgs.cs
- UITypeEditor.cs
- XmlSchemaSimpleTypeUnion.cs
- CodeStatement.cs
- UserPreferenceChangedEventArgs.cs
- UserCancellationException.cs
- SiteMapNodeItem.cs
- NameObjectCollectionBase.cs
- TemplatedWizardStep.cs
- ReferenceAssemblyAttribute.cs
- SoapMessage.cs
- WindowVisualStateTracker.cs
- ArithmeticException.cs
- ModelItemExtensions.cs
- ValidationPropertyAttribute.cs
- PieceNameHelper.cs
- invalidudtexception.cs
- ChildChangedEventArgs.cs
- SystemUdpStatistics.cs
- CompiledAction.cs
- path.cs
- ImmutableCollection.cs
- FileStream.cs
- MessageOperationFormatter.cs
- ObjectComplexPropertyMapping.cs
- MobileComponentEditorPage.cs
- RegisteredScript.cs
- MD5CryptoServiceProvider.cs
- TypeToArgumentTypeConverter.cs
- ListItemCollection.cs
- EdmItemError.cs
- TableColumn.cs
- Tokenizer.cs
- FactoryGenerator.cs
- CaseStatement.cs
- ScriptComponentDescriptor.cs
- BulletedList.cs
- XmlSchemaInferenceException.cs
- ResourcePool.cs
- ConfigXmlAttribute.cs
- DataTemplateKey.cs
- X509RawDataKeyIdentifierClause.cs
- AssemblyCollection.cs
- Rect3D.cs
- securitycriticaldataClass.cs
- SessionEndingEventArgs.cs
- XmlAutoDetectWriter.cs
- httpstaticobjectscollection.cs
- CorrelationActionMessageFilter.cs
- _NtlmClient.cs
- DataGridColumnHeadersPresenter.cs
- ProxyWebPartManager.cs
- x509store.cs
- SessionPageStatePersister.cs
- RoleManagerEventArgs.cs
- SelectionProviderWrapper.cs
- Membership.cs
- GreenMethods.cs
- AddInController.cs
- PolyLineSegmentFigureLogic.cs
- CompareValidator.cs
- TrustManagerPromptUI.cs
- LocalizableResourceBuilder.cs
- CodeCatchClause.cs
- TextEndOfLine.cs
- Ticks.cs
- FilteredAttributeCollection.cs
- ProgressBarBrushConverter.cs
- View.cs
- EdgeProfileValidation.cs
- dataobject.cs
- precedingquery.cs
- InputLangChangeRequestEvent.cs
- FormsAuthenticationCredentials.cs
- XslUrlEditor.cs
- ConnectionStringSettings.cs
- LinqDataSourceDisposeEventArgs.cs
- Identifier.cs
- ScrollProviderWrapper.cs
- XsdDuration.cs
- XmlNodeReader.cs
- AbandonedMutexException.cs
- AnnotationComponentManager.cs
- XsdBuildProvider.cs
- XPathAncestorQuery.cs
- IOException.cs
- SqlDataSourceEnumerator.cs
- CompilationSection.cs
- RowParagraph.cs
- PointAnimationUsingPath.cs