Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / KnownBoxes.cs / 1305600 / 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
- ElementHostAutomationPeer.cs
- PropertyStore.cs
- FacetValueContainer.cs
- ReplacementText.cs
- NavigationCommands.cs
- ReaderOutput.cs
- UnsafeNativeMethods.cs
- XslException.cs
- SignatureHelper.cs
- IndentedWriter.cs
- QueryableDataSourceView.cs
- UpdateTranslator.cs
- TreeNodeConverter.cs
- TdsParserSessionPool.cs
- CultureSpecificStringDictionary.cs
- Visual3DCollection.cs
- RegisteredHiddenField.cs
- XComponentModel.cs
- QilInvoke.cs
- XmlDataSourceView.cs
- ClassicBorderDecorator.cs
- ResourceProviderFactory.cs
- SmiEventSink.cs
- UdpDiscoveryEndpoint.cs
- ProgressBar.cs
- TypeBrowserDialog.cs
- InvalidStoreProtectionKeyException.cs
- MimePart.cs
- DbConnectionPoolGroupProviderInfo.cs
- MarkerProperties.cs
- LeaseManager.cs
- XmlReflectionMember.cs
- SerializerDescriptor.cs
- ClientOptions.cs
- PrintEvent.cs
- MonitoringDescriptionAttribute.cs
- FigureParagraph.cs
- LicenseContext.cs
- DefinitionUpdate.cs
- AssemblyName.cs
- DatatypeImplementation.cs
- DuplexChannel.cs
- SettingsProperty.cs
- XmlSchemaIdentityConstraint.cs
- ProtocolViolationException.cs
- DataBindEngine.cs
- XmlDigitalSignatureProcessor.cs
- SendSecurityHeaderElementContainer.cs
- OleDbException.cs
- HttpRawResponse.cs
- PerformanceCounterManager.cs
- MailAddress.cs
- DoubleLink.cs
- SqlCacheDependencyDatabaseCollection.cs
- SafeUserTokenHandle.cs
- SinglePhaseEnlistment.cs
- BinaryUtilClasses.cs
- ListControlStringCollectionEditor.cs
- IOThreadTimer.cs
- SpecialNameAttribute.cs
- Parser.cs
- VariableQuery.cs
- XPathNavigatorException.cs
- Point.cs
- WorkflowMessageEventArgs.cs
- SoundPlayerAction.cs
- XmlElementList.cs
- SqlProviderUtilities.cs
- DataTrigger.cs
- PhonemeEventArgs.cs
- RequiredFieldValidator.cs
- CompositeDataBoundControl.cs
- CellNormalizer.cs
- TextEffectResolver.cs
- IDictionary.cs
- Viewport3DAutomationPeer.cs
- __TransparentProxy.cs
- StylusTip.cs
- ToolStripDesignerUtils.cs
- ImageButton.cs
- DbConnectionHelper.cs
- XmlSchemaInclude.cs
- GenerateDerivedKeyRequest.cs
- ToolStripManager.cs
- OpCodes.cs
- BaseAsyncResult.cs
- SafeMemoryMappedFileHandle.cs
- Array.cs
- TextElementCollection.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ReadOnlyDataSource.cs
- DataGridViewCellFormattingEventArgs.cs
- StrongNameKeyPair.cs
- OutputScopeManager.cs
- FullTrustAssembliesSection.cs
- Util.cs
- FileChangesMonitor.cs
- InkPresenter.cs
- BasePattern.cs
- TextEncodedRawTextWriter.cs