Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / 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. 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
- VoiceObjectToken.cs
- EnumUnknown.cs
- ToolStripItemClickedEventArgs.cs
- ImageConverter.cs
- DataColumnMappingCollection.cs
- ScalarConstant.cs
- CultureSpecificCharacterBufferRange.cs
- ListViewCancelEventArgs.cs
- COM2IDispatchConverter.cs
- ConfigurationElementProperty.cs
- NamedPermissionSet.cs
- ProvidersHelper.cs
- CqlIdentifiers.cs
- RegionData.cs
- CustomErrorCollection.cs
- TextProperties.cs
- WindowCollection.cs
- EncodingDataItem.cs
- ListChangedEventArgs.cs
- Tuple.cs
- MethodResolver.cs
- GeometryModel3D.cs
- DependencyPropertyDescriptor.cs
- TypeConverterValueSerializer.cs
- DynamicHyperLink.cs
- XPathNodePointer.cs
- ParagraphVisual.cs
- NumberSubstitution.cs
- WindowsImpersonationContext.cs
- MultipleViewProviderWrapper.cs
- SafeCryptoHandles.cs
- WebPartDisplayModeCancelEventArgs.cs
- BatchStream.cs
- FamilyTypefaceCollection.cs
- Int16Storage.cs
- SignatureToken.cs
- Table.cs
- PrinterResolution.cs
- Vector3D.cs
- Tag.cs
- XmlIlTypeHelper.cs
- QuadraticBezierSegment.cs
- InternalEnumValidatorAttribute.cs
- MSG.cs
- Double.cs
- DbResourceAllocator.cs
- ListBindingHelper.cs
- XmlEventCache.cs
- GradientStop.cs
- DefaultSection.cs
- ToolStripItemRenderEventArgs.cs
- DriveInfo.cs
- RuntimeWrappedException.cs
- ObfuscationAttribute.cs
- SoapReflectionImporter.cs
- XPathNodePointer.cs
- SystemUdpStatistics.cs
- EnumUnknown.cs
- Condition.cs
- AppModelKnownContentFactory.cs
- SoapSchemaImporter.cs
- Selection.cs
- PassportIdentity.cs
- DesignerDataSchemaClass.cs
- GroupStyle.cs
- InvalidTimeZoneException.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- TypeGeneratedEventArgs.cs
- StrokeIntersection.cs
- dataprotectionpermission.cs
- XsdCachingReader.cs
- DataGridTextBox.cs
- HttpRequestTraceRecord.cs
- MexBindingElement.cs
- MetadataUtilsSmi.cs
- StringFreezingAttribute.cs
- Transform.cs
- DiagnosticTrace.cs
- XmlDataImplementation.cs
- BitmapEffectGeneralTransform.cs
- SchemaNamespaceManager.cs
- SHA1Managed.cs
- StateManagedCollection.cs
- MessageQueueInstaller.cs
- ButtonFlatAdapter.cs
- ClientSideProviderDescription.cs
- CompressedStack.cs
- TextViewSelectionProcessor.cs
- WpfSharedBamlSchemaContext.cs
- ImageButton.cs
- EventSinkHelperWriter.cs
- precedingquery.cs
- EFColumnProvider.cs
- BitmapMetadata.cs
- HostingEnvironment.cs
- CaseExpr.cs
- PathGeometry.cs
- KerberosRequestorSecurityToken.cs
- ObjectDataSourceSelectingEventArgs.cs
- HtmlTableCell.cs