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
- LinkConverter.cs
- DataGridViewIntLinkedList.cs
- DatatypeImplementation.cs
- DataTemplateSelector.cs
- GcSettings.cs
- WindowsGraphics.cs
- AssemblyCacheEntry.cs
- ToolStripItemRenderEventArgs.cs
- RubberbandSelector.cs
- LiteralControl.cs
- DbConnectionOptions.cs
- WebSysDisplayNameAttribute.cs
- StateInitializationDesigner.cs
- PassportAuthentication.cs
- DesignerActionListCollection.cs
- BamlCollectionHolder.cs
- SerializationSectionGroup.cs
- XPathSelfQuery.cs
- CompareValidator.cs
- BamlTreeNode.cs
- XamlParser.cs
- AdPostCacheSubstitution.cs
- Pen.cs
- XPathNodeList.cs
- BitHelper.cs
- HandleCollector.cs
- SystemIcmpV6Statistics.cs
- XmlValidatingReaderImpl.cs
- WrapperSecurityCommunicationObject.cs
- BooleanStorage.cs
- TemplateField.cs
- RangeContentEnumerator.cs
- DescendentsWalkerBase.cs
- AssociatedControlConverter.cs
- TextUtf8RawTextWriter.cs
- PropertyFilterAttribute.cs
- TabletCollection.cs
- ValueExpressions.cs
- ExtendedPropertyDescriptor.cs
- ServiceProviders.cs
- OneWayChannelFactory.cs
- ForeignKeyFactory.cs
- TextBoxLine.cs
- CellConstantDomain.cs
- Point3DIndependentAnimationStorage.cs
- ToolStripRenderEventArgs.cs
- SqlCacheDependencyDatabaseCollection.cs
- ChoiceConverter.cs
- HttpServerVarsCollection.cs
- WebFormDesignerActionService.cs
- BitmapEffectvisualstate.cs
- MonthChangedEventArgs.cs
- DataControlImageButton.cs
- CompiledRegexRunner.cs
- Pair.cs
- JoinSymbol.cs
- StreamGeometryContext.cs
- Size3DConverter.cs
- CombinedGeometry.cs
- NavigationProperty.cs
- IdentityReference.cs
- UnmanagedHandle.cs
- RegionData.cs
- WsdlBuildProvider.cs
- StylusCollection.cs
- storepermissionattribute.cs
- BindingCollection.cs
- ZipIOExtraFieldPaddingElement.cs
- AxImporter.cs
- BindableAttribute.cs
- FormattedText.cs
- TextParagraphProperties.cs
- RegexEditorDialog.cs
- Cell.cs
- CursorConverter.cs
- Evaluator.cs
- SaveFileDialogDesigner.cs
- InspectionWorker.cs
- JavaScriptObjectDeserializer.cs
- EntityProxyTypeInfo.cs
- XmlResolver.cs
- XmlNavigatorStack.cs
- ToolboxComponentsCreatedEventArgs.cs
- RSACryptoServiceProvider.cs
- Helpers.cs
- ExpressionLink.cs
- TreeNodeStyleCollection.cs
- SmiConnection.cs
- ObjectKeyFrameCollection.cs
- HtmlControlPersistable.cs
- EntityDataSourceColumn.cs
- XmlComment.cs
- LocalFileSettingsProvider.cs
- IImplicitResourceProvider.cs
- DataServiceQueryOfT.cs
- DataSpaceManager.cs
- StringFormat.cs
- InstanceLockedException.cs
- DataObjectSettingDataEventArgs.cs
- WriteFileContext.cs