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
- TraceEventCache.cs
- ModuleConfigurationInfo.cs
- SystemMulticastIPAddressInformation.cs
- XmlQualifiedName.cs
- CodeCatchClause.cs
- UnsafeNativeMethodsPenimc.cs
- DetailsViewCommandEventArgs.cs
- HtmlFormWrapper.cs
- DockPanel.cs
- HttpPostProtocolReflector.cs
- SettingsProperty.cs
- X509ClientCertificateCredentialsElement.cs
- HttpListenerContext.cs
- EventSourceCreationData.cs
- BufferAllocator.cs
- ArglessEventHandlerProxy.cs
- WeakReferenceEnumerator.cs
- PeerCollaborationPermission.cs
- TypeNameHelper.cs
- HtmlWindowCollection.cs
- CollectionChangeEventArgs.cs
- BindingCompleteEventArgs.cs
- altserialization.cs
- NumericUpDownAcceleration.cs
- FormsAuthenticationConfiguration.cs
- XmlIgnoreAttribute.cs
- HttpCookiesSection.cs
- SqlProcedureAttribute.cs
- DataGridViewRowStateChangedEventArgs.cs
- WinEventHandler.cs
- ToolStripSystemRenderer.cs
- EdmError.cs
- Parameter.cs
- precedingsibling.cs
- XmlElementList.cs
- GridViewRow.cs
- _ShellExpression.cs
- XmlSchemaParticle.cs
- DocumentPaginator.cs
- CodeTypeParameterCollection.cs
- EpmCustomContentDeSerializer.cs
- LabelDesigner.cs
- StatusBar.cs
- DateTimeFormat.cs
- SafeEventLogReadHandle.cs
- AxisAngleRotation3D.cs
- URI.cs
- DynamicHyperLink.cs
- Calendar.cs
- OleAutBinder.cs
- SoapSchemaMember.cs
- DataGridColumnFloatingHeader.cs
- ImageAnimator.cs
- SystemIcons.cs
- BitmapCacheBrush.cs
- DesignUtil.cs
- PersonalizationState.cs
- PerformanceCounterPermissionAttribute.cs
- AncestorChangedEventArgs.cs
- SparseMemoryStream.cs
- SubtreeProcessor.cs
- BitmapEffectrendercontext.cs
- TreeNodeStyleCollection.cs
- FormView.cs
- CharacterBuffer.cs
- TypographyProperties.cs
- WinEventWrap.cs
- AvTraceDetails.cs
- HttpWriter.cs
- HandlerBase.cs
- ConnectionInterfaceCollection.cs
- PieceDirectory.cs
- XmlAttributes.cs
- HttpConfigurationSystem.cs
- mda.cs
- XhtmlBasicLinkAdapter.cs
- XPathScanner.cs
- XmlSerializableReader.cs
- PerformanceCounterManager.cs
- Rect3DValueSerializer.cs
- SqlBooleanizer.cs
- JournalNavigationScope.cs
- QfeChecker.cs
- SQLMembershipProvider.cs
- Pts.cs
- SdlChannelSink.cs
- TagPrefixAttribute.cs
- DecoderBestFitFallback.cs
- QueryableDataSourceEditData.cs
- TempFiles.cs
- Wizard.cs
- InheritanceUI.cs
- SessionStateModule.cs
- TraceLevelStore.cs
- BooleanStorage.cs
- ImportCatalogPart.cs
- WebConfigurationFileMap.cs
- TypeConverterMarkupExtension.cs
- BindingList.cs
- DiscoveryInnerClientAdhocCD1.cs