Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConfigurationErrorsException.cs
- DataSourceBooleanViewSchemaConverter.cs
- WindowsGraphicsCacheManager.cs
- XmlDocumentSerializer.cs
- _UriSyntax.cs
- TextParagraph.cs
- IISUnsafeMethods.cs
- RuntimeResourceSet.cs
- BindMarkupExtensionSerializer.cs
- propertytag.cs
- MultiPartWriter.cs
- PopOutPanel.cs
- ToolStripKeyboardHandlingService.cs
- CreateUserWizard.cs
- FixedSOMPage.cs
- RadialGradientBrush.cs
- XmlSchemaAttributeGroup.cs
- AttachedAnnotationChangedEventArgs.cs
- CheckBox.cs
- NativeMethods.cs
- PropertyTab.cs
- WindowsRichEditRange.cs
- MenuCommand.cs
- ResumeStoryboard.cs
- WinFormsSecurity.cs
- HtmlAnchor.cs
- KeyEvent.cs
- MenuItemBindingCollection.cs
- NodeLabelEditEvent.cs
- HealthMonitoringSection.cs
- DataRow.cs
- ValidationHelper.cs
- PersonalizationStateInfoCollection.cs
- FileDialogCustomPlacesCollection.cs
- ProfilePropertySettings.cs
- ParameterCollection.cs
- DisableDpiAwarenessAttribute.cs
- ClientRoleProvider.cs
- safesecurityhelperavalon.cs
- EntitySqlQueryCacheKey.cs
- UriTemplateCompoundPathSegment.cs
- ProcessModelInfo.cs
- ActivityAction.cs
- SplitterEvent.cs
- KnownTypes.cs
- EventsTab.cs
- RequestDescription.cs
- TextEditorMouse.cs
- PageContentCollection.cs
- GatewayDefinition.cs
- Metadata.cs
- HttpListenerRequest.cs
- TargetConverter.cs
- XmlSchemaSearchPattern.cs
- Dispatcher.cs
- DbDeleteCommandTree.cs
- DataSourceControl.cs
- TrackingStringDictionary.cs
- HtmlTableCellCollection.cs
- Encoding.cs
- CellParagraph.cs
- DesignerTransaction.cs
- DataControlPagerLinkButton.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- UnsafeNativeMethods.cs
- LeafCellTreeNode.cs
- SystemIPv6InterfaceProperties.cs
- StreamHelper.cs
- TextEditorMouse.cs
- LinqDataSourceSelectEventArgs.cs
- ManagementPath.cs
- TrimSurroundingWhitespaceAttribute.cs
- ApplicationFileCodeDomTreeGenerator.cs
- NetworkCredential.cs
- _LocalDataStoreMgr.cs
- XPathNavigator.cs
- SiteMapNodeItem.cs
- IdentitySection.cs
- CategoriesDocument.cs
- GorillaCodec.cs
- XmlSerializerNamespaces.cs
- StoreItemCollection.cs
- StringOutput.cs
- UserValidatedEventArgs.cs
- Dump.cs
- OutputCacheProfile.cs
- PixelShader.cs
- BuildManager.cs
- SkipStoryboardToFill.cs
- altserialization.cs
- ScriptResourceMapping.cs
- XamlBrushSerializer.cs
- RequiredAttributeAttribute.cs
- TypeDescriptor.cs
- UseManagedPresentationElement.cs
- _SSPIWrapper.cs
- VisualProxy.cs
- SettingsPropertyNotFoundException.cs
- ExpressionParser.cs
- CodeCatchClause.cs