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
- UInt64Storage.cs
- TreeWalkHelper.cs
- HttpListenerContext.cs
- SurrogateEncoder.cs
- Literal.cs
- PriorityQueue.cs
- NamedPermissionSet.cs
- DescendantQuery.cs
- ManagedCodeMarkers.cs
- MethodImplAttribute.cs
- AutomationPropertyInfo.cs
- QuaternionRotation3D.cs
- Context.cs
- Point3DKeyFrameCollection.cs
- SingleResultAttribute.cs
- XmlFormatExtensionAttribute.cs
- MimeBasePart.cs
- OdbcUtils.cs
- FamilyMapCollection.cs
- OneToOneMappingSerializer.cs
- FigureParaClient.cs
- CacheSection.cs
- HttpWebResponse.cs
- MimeBasePart.cs
- OleDbCommandBuilder.cs
- PersonalizationState.cs
- ColorIndependentAnimationStorage.cs
- XslAstAnalyzer.cs
- ConfigurationElementProperty.cs
- WindowsSpinner.cs
- PolicyStatement.cs
- ElementFactory.cs
- EUCJPEncoding.cs
- Attribute.cs
- WizardStepBase.cs
- Pair.cs
- Light.cs
- UnitySerializationHolder.cs
- WebBrowserProgressChangedEventHandler.cs
- WindowsToolbarAsMenu.cs
- ContainerUIElement3D.cs
- tooltip.cs
- EditorZoneBase.cs
- DeferredElementTreeState.cs
- WindowsGraphics2.cs
- EncryptedReference.cs
- TemplateEditingFrame.cs
- SqlIdentifier.cs
- XmlSchemaAttribute.cs
- ReplacementText.cs
- RightNameExpirationInfoPair.cs
- EncoderNLS.cs
- login.cs
- TableAutomationPeer.cs
- DbgUtil.cs
- PeerNameResolver.cs
- PermissionSetEnumerator.cs
- EventDescriptor.cs
- XpsSerializationManager.cs
- PersonalizationProviderHelper.cs
- AttributeCollection.cs
- EditingMode.cs
- SecurityProtocol.cs
- OleDbConnectionFactory.cs
- CompositionTarget.cs
- HandledMouseEvent.cs
- SystemGatewayIPAddressInformation.cs
- CallbackHandler.cs
- XmlAtomicValue.cs
- BooleanProjectedSlot.cs
- SoapUnknownHeader.cs
- InvalidEnumArgumentException.cs
- TextRangeProviderWrapper.cs
- UICuesEvent.cs
- TabPage.cs
- SystemIPAddressInformation.cs
- CompositeKey.cs
- NullRuntimeConfig.cs
- PrePostDescendentsWalker.cs
- ResourceDisplayNameAttribute.cs
- EditingMode.cs
- AsynchronousChannelMergeEnumerator.cs
- HttpVersion.cs
- WebDescriptionAttribute.cs
- ObjectQueryExecutionPlan.cs
- EmptyStringExpandableObjectConverter.cs
- CodeGeneratorOptions.cs
- CodeMemberProperty.cs
- SymbolUsageManager.cs
- CqlParserHelpers.cs
- ControlAdapter.cs
- JpegBitmapDecoder.cs
- VirtualDirectoryMapping.cs
- DateTime.cs
- GAC.cs
- HandlerFactoryCache.cs
- LocalizedNameDescriptionPair.cs
- XsdDateTime.cs
- KeyTime.cs
- CacheOutputQuery.cs