Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ReachSerializationCacheItems.cs
- DataColumnChangeEvent.cs
- FieldNameLookup.cs
- FileRecordSequence.cs
- BoolExpression.cs
- CategoryGridEntry.cs
- XmlSerializableWriter.cs
- PasswordBoxAutomationPeer.cs
- ToggleButtonAutomationPeer.cs
- figurelengthconverter.cs
- Formatter.cs
- DescriptionAttribute.cs
- SingleAnimationUsingKeyFrames.cs
- TdsParserSessionPool.cs
- EdmFunctions.cs
- StylusEventArgs.cs
- PolicyLevel.cs
- StringStorage.cs
- ErrorWebPart.cs
- ADMembershipUser.cs
- SoundPlayer.cs
- EntitySqlQueryCacheKey.cs
- MetafileEditor.cs
- RemotingConfigParser.cs
- ListViewGroupConverter.cs
- Clock.cs
- TextChangedEventArgs.cs
- ListSortDescription.cs
- ContentPosition.cs
- CodeSubDirectoriesCollection.cs
- HttpEncoder.cs
- ScrollProperties.cs
- DataGridViewComboBoxColumnDesigner.cs
- SlipBehavior.cs
- MaskPropertyEditor.cs
- ProvidePropertyAttribute.cs
- VectorCollectionValueSerializer.cs
- MetadataArtifactLoaderResource.cs
- RoleExceptions.cs
- RegexNode.cs
- UpdatePanel.cs
- SchemaNames.cs
- DrawingAttributesDefaultValueFactory.cs
- ParameterToken.cs
- FormsAuthenticationUserCollection.cs
- ControlBindingsConverter.cs
- DataBindingExpressionBuilder.cs
- XMLDiffLoader.cs
- TextServicesPropertyRanges.cs
- GroupItem.cs
- OdbcCommand.cs
- ExpressionWriter.cs
- MenuItem.cs
- PixelFormats.cs
- AssociationSet.cs
- OdbcConnection.cs
- GridViewCancelEditEventArgs.cs
- JavaScriptObjectDeserializer.cs
- GcSettings.cs
- FeatureAttribute.cs
- ArraySegment.cs
- CellRelation.cs
- BufferedReadStream.cs
- CoTaskMemHandle.cs
- ChannelCacheDefaults.cs
- AuthenticationException.cs
- IdleTimeoutMonitor.cs
- SHA384.cs
- Privilege.cs
- XamlPointCollectionSerializer.cs
- ApplicationProxyInternal.cs
- TableLayout.cs
- Transform3DGroup.cs
- ForceCopyBuildProvider.cs
- KnownIds.cs
- WebPartConnectionsConfigureVerb.cs
- XPathEmptyIterator.cs
- PathGeometry.cs
- IpcClientManager.cs
- PeerHelpers.cs
- ScriptManager.cs
- LogConverter.cs
- ImageConverter.cs
- XmlnsPrefixAttribute.cs
- ExtentKey.cs
- ProfileSettings.cs
- TableColumn.cs
- Help.cs
- XPathParser.cs
- InitialServerConnectionReader.cs
- HashSetDebugView.cs
- odbcmetadatacollectionnames.cs
- SqlUserDefinedAggregateAttribute.cs
- SpellerInterop.cs
- IPGlobalProperties.cs
- StaticSiteMapProvider.cs
- PeerInvitationResponse.cs
- ReversePositionQuery.cs
- RelatedImageListAttribute.cs
- XmlValidatingReaderImpl.cs