Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / MS / Internal / KnownBoxes.cs / 1 / 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
- CodePageEncoding.cs
- LogArchiveSnapshot.cs
- DataListItemEventArgs.cs
- ASCIIEncoding.cs
- Int64.cs
- CountAggregationOperator.cs
- SystemIPv6InterfaceProperties.cs
- LinkedResourceCollection.cs
- Window.cs
- SystemEvents.cs
- ScriptReference.cs
- MediaContextNotificationWindow.cs
- InternalRelationshipCollection.cs
- TextAutomationPeer.cs
- CompilerParameters.cs
- MembershipPasswordException.cs
- CodeAssignStatement.cs
- ChannelCacheDefaults.cs
- ImageMetadata.cs
- BitmapDecoder.cs
- BidPrivateBase.cs
- NotifyParentPropertyAttribute.cs
- PointLightBase.cs
- XhtmlConformanceSection.cs
- ProcessStartInfo.cs
- ScriptingRoleServiceSection.cs
- TableLayoutPanelCellPosition.cs
- SqlOuterApplyReducer.cs
- NumericExpr.cs
- Misc.cs
- QuaternionConverter.cs
- DBConcurrencyException.cs
- XmlSchemaFacet.cs
- ListViewSortEventArgs.cs
- UnsafeNativeMethods.cs
- TabletDevice.cs
- InternalUserCancelledException.cs
- MultiView.cs
- ItemsControlAutomationPeer.cs
- WmpBitmapEncoder.cs
- IRCollection.cs
- Convert.cs
- WebPartCancelEventArgs.cs
- VisualStyleTypesAndProperties.cs
- PerformanceCounterManager.cs
- XmlSchemaException.cs
- ClientSession.cs
- SwitchElementsCollection.cs
- InvokeMemberBinder.cs
- AsmxEndpointPickerExtension.cs
- XmlAttributeCollection.cs
- OleDbDataReader.cs
- SafeNativeMethods.cs
- QilTernary.cs
- DataGridTextBoxColumn.cs
- BackgroundFormatInfo.cs
- HttpModulesSection.cs
- NameGenerator.cs
- DirectoryInfo.cs
- __Filters.cs
- WmlListAdapter.cs
- AppSettingsSection.cs
- PeerObject.cs
- IUnknownConstantAttribute.cs
- DefaultCommandExtensionCallback.cs
- TextContainerChangeEventArgs.cs
- XD.cs
- RefExpr.cs
- MaskInputRejectedEventArgs.cs
- XmlDataSourceView.cs
- XslVisitor.cs
- PageVisual.cs
- ListControlConvertEventArgs.cs
- FixedNode.cs
- HeaderElement.cs
- MsmqHostedTransportManager.cs
- SwitchAttribute.cs
- WorkflowOperationFault.cs
- WebEventTraceProvider.cs
- DSACryptoServiceProvider.cs
- FixedHyperLink.cs
- PackWebRequestFactory.cs
- XsltException.cs
- SelectionChangedEventArgs.cs
- UInt16Storage.cs
- Crypto.cs
- XamlStyleSerializer.cs
- BaseParser.cs
- ComponentSerializationService.cs
- ScriptDescriptor.cs
- NameObjectCollectionBase.cs
- XamlClipboardData.cs
- QueryOptionExpression.cs
- metadatamappinghashervisitor.cs
- CodeIterationStatement.cs
- OdbcTransaction.cs
- SapiRecoContext.cs
- FormatterServices.cs
- RSAPKCS1KeyExchangeFormatter.cs
- TableFieldsEditor.cs