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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ScrollBarRenderer.cs
- XappLauncher.cs
- MenuCommand.cs
- DataControlFieldCollection.cs
- Activity.cs
- ContentElement.cs
- Byte.cs
- HyperLinkStyle.cs
- MinimizableAttributeTypeConverter.cs
- QueryResult.cs
- Configuration.cs
- CalendarButton.cs
- UTF32Encoding.cs
- HostingEnvironmentSection.cs
- counter.cs
- WrappedIUnknown.cs
- XmlQueryContext.cs
- OleDbPropertySetGuid.cs
- CodeCompiler.cs
- DataGridCell.cs
- ExpressionBuilder.cs
- DispatcherOperation.cs
- QilLoop.cs
- QueryMath.cs
- FileStream.cs
- XmlNamespaceManager.cs
- BitmapEffectInputData.cs
- CompilationRelaxations.cs
- OdbcParameter.cs
- StaticExtension.cs
- ErrorFormatterPage.cs
- CSharpCodeProvider.cs
- StreamWithDictionary.cs
- CharacterBuffer.cs
- SoapTypeAttribute.cs
- BinaryObjectInfo.cs
- HostAdapter.cs
- CodeDefaultValueExpression.cs
- InitiatorSessionSymmetricTransportSecurityProtocol.cs
- ValidationPropertyAttribute.cs
- RouteTable.cs
- DataSourceControlBuilder.cs
- ContextInformation.cs
- MenuItem.cs
- DataGridViewCellPaintingEventArgs.cs
- ClientRolePrincipal.cs
- HorizontalAlignConverter.cs
- TraceLog.cs
- LayoutEngine.cs
- GACIdentityPermission.cs
- Point3DAnimationBase.cs
- XLinq.cs
- TypeConverterBase.cs
- InputLanguageProfileNotifySink.cs
- WebPartDescription.cs
- ControlDesignerState.cs
- MethodExpr.cs
- SystemResourceKey.cs
- WindowsFormsHelpers.cs
- lengthconverter.cs
- AmbientLight.cs
- ImageMetadata.cs
- TextRangeEditTables.cs
- CompoundFileReference.cs
- ProjectionCamera.cs
- _Connection.cs
- ClaimTypeRequirement.cs
- loginstatus.cs
- LinqDataSourceContextData.cs
- ListViewGroup.cs
- ReliableMessagingVersionConverter.cs
- IncrementalReadDecoders.cs
- SEHException.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ModuleBuilderData.cs
- CodeCatchClauseCollection.cs
- BinaryObjectReader.cs
- AccessorTable.cs
- HandlerBase.cs
- WebBrowser.cs
- MutexSecurity.cs
- HwndProxyElementProvider.cs
- ArgumentException.cs
- RoutedEventConverter.cs
- RIPEMD160Managed.cs
- FolderBrowserDialog.cs
- NavigatorOutput.cs
- RedirectionProxy.cs
- RenderTargetBitmap.cs
- ApplySecurityAndSendAsyncResult.cs
- Pointer.cs
- __ConsoleStream.cs
- CodeCatchClause.cs
- FormattedText.cs
- Stream.cs
- ErrorStyle.cs
- DataGridTemplateColumn.cs
- ContextProperty.cs
- SQLMembershipProvider.cs
- ValueTable.cs