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
- EventLogHandle.cs
- ProfileParameter.cs
- CompModSwitches.cs
- DataRecordInfo.cs
- OutputCacheSection.cs
- EventHandlersStore.cs
- X509SubjectKeyIdentifierClause.cs
- AutomationPropertyInfo.cs
- EmbeddedMailObject.cs
- TemplateManager.cs
- ResourceKey.cs
- FixedTextView.cs
- WebBrowserProgressChangedEventHandler.cs
- OutputWindow.cs
- CodeDOMUtility.cs
- FormsAuthenticationTicket.cs
- EventHandlers.cs
- XmlLoader.cs
- InvokeProviderWrapper.cs
- EntityTypeBase.cs
- GridToolTip.cs
- PathData.cs
- IssuedTokenServiceCredential.cs
- ScriptDescriptor.cs
- DrawingContextDrawingContextWalker.cs
- TrackingMemoryStreamFactory.cs
- Pool.cs
- SystemTcpStatistics.cs
- XmlKeywords.cs
- CodeNamespace.cs
- JpegBitmapDecoder.cs
- CryptoConfig.cs
- ParseChildrenAsPropertiesAttribute.cs
- ipaddressinformationcollection.cs
- ProxyManager.cs
- HealthMonitoringSectionHelper.cs
- RequestCachePolicy.cs
- EdmComplexPropertyAttribute.cs
- Context.cs
- SqlColumnizer.cs
- Shape.cs
- ProfileSection.cs
- AssociationProvider.cs
- ClientSection.cs
- Dump.cs
- GroupedContextMenuStrip.cs
- ValidationErrorEventArgs.cs
- ErrorRuntimeConfig.cs
- CircleEase.cs
- BitSet.cs
- OutputCacheSection.cs
- webclient.cs
- HelpInfo.cs
- ClientOptions.cs
- CreateSequence.cs
- FloatUtil.cs
- VScrollBar.cs
- SqlConnectionStringBuilder.cs
- PageThemeCodeDomTreeGenerator.cs
- AppSettingsReader.cs
- Set.cs
- TextView.cs
- TypeUsageBuilder.cs
- RepeatButtonAutomationPeer.cs
- DocumentXmlWriter.cs
- ProfileSettingsCollection.cs
- X509SecurityTokenAuthenticator.cs
- Positioning.cs
- XPathNavigator.cs
- WaitForChangedResult.cs
- SqlErrorCollection.cs
- CodeDOMProvider.cs
- ApplicationServiceManager.cs
- DispatcherProcessingDisabled.cs
- InfiniteIntConverter.cs
- SoapAttributes.cs
- CatchBlock.cs
- IgnoreDataMemberAttribute.cs
- HttpFileCollection.cs
- RtType.cs
- ToolStripEditorManager.cs
- EdmPropertyAttribute.cs
- ApplicationSecurityManager.cs
- BuildProviderCollection.cs
- MailMessage.cs
- SessionStateUtil.cs
- SHA256.cs
- TextEditorContextMenu.cs
- RunWorkerCompletedEventArgs.cs
- WrappedIUnknown.cs
- ThemeInfoAttribute.cs
- VerificationAttribute.cs
- ObservableDictionary.cs
- TileBrush.cs
- ReadOnlyAttribute.cs
- HtmlInputControl.cs
- ContextDataSourceContextData.cs
- ResolveNameEventArgs.cs
- UserControlFileEditor.cs
- SchemeSettingElementCollection.cs