Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ContextDataSource.cs
- ContextStaticAttribute.cs
- PropertyMapper.cs
- EncryptedPackageFilter.cs
- WebPartZoneBase.cs
- SqlGatherProducedAliases.cs
- ExtentCqlBlock.cs
- CharEntityEncoderFallback.cs
- ConfigurationSection.cs
- ResolvePPIDRequest.cs
- GridViewItemAutomationPeer.cs
- MimeTypeMapper.cs
- NonClientArea.cs
- OutputCacheProfile.cs
- XmlSchemaObject.cs
- HtmlToClrEventProxy.cs
- UnmanagedMemoryStream.cs
- NativeActivity.cs
- StringFormat.cs
- Listbox.cs
- ElementFactory.cs
- SqlDataAdapter.cs
- QueryCoreOp.cs
- TransformationRules.cs
- InvalidCastException.cs
- SemanticAnalyzer.cs
- Iis7Helper.cs
- DataGridItemEventArgs.cs
- CommandID.cs
- AlternateView.cs
- AuthenticationSection.cs
- XmlDataContract.cs
- BindUriHelper.cs
- WebBaseEventKeyComparer.cs
- GridEntry.cs
- Stylesheet.cs
- TypeNameConverter.cs
- Expressions.cs
- SimpleWebHandlerParser.cs
- SiteOfOriginContainer.cs
- ImpersonateTokenRef.cs
- FormClosingEvent.cs
- Help.cs
- MimeTypeMapper.cs
- MimeMapping.cs
- StickyNote.cs
- IDispatchConstantAttribute.cs
- StylusDevice.cs
- SByte.cs
- GAC.cs
- DescendantBaseQuery.cs
- FrameworkReadOnlyPropertyMetadata.cs
- Section.cs
- UTF7Encoding.cs
- ExecutionEngineException.cs
- ThumbAutomationPeer.cs
- TextEmbeddedObject.cs
- DebugHandleTracker.cs
- DataGridViewRowsRemovedEventArgs.cs
- SqlRemoveConstantOrderBy.cs
- DynamicUpdateCommand.cs
- SynchronizedInputProviderWrapper.cs
- DataGridViewCellConverter.cs
- NumberEdit.cs
- TemplateBindingExpression.cs
- ProviderMetadataCachedInformation.cs
- GregorianCalendar.cs
- Buffer.cs
- MemoryMappedView.cs
- IIS7WorkerRequest.cs
- DateTimeParse.cs
- Exceptions.cs
- TaiwanCalendar.cs
- DesignerTextWriter.cs
- ParserExtension.cs
- MultiByteCodec.cs
- EqualityComparer.cs
- ContentType.cs
- FontInfo.cs
- XPathParser.cs
- PageHandlerFactory.cs
- WebPartManagerInternals.cs
- ConcurrentQueue.cs
- Win32SafeHandles.cs
- ActivationArguments.cs
- SingleStorage.cs
- AlignmentYValidation.cs
- ItemsControlAutomationPeer.cs
- UpdateTranslator.cs
- Transform3D.cs
- PrintingPermission.cs
- ControlPropertyNameConverter.cs
- ValidationError.cs
- DirectoryInfo.cs
- UnsafeNativeMethods.cs
- XamlSerializationHelper.cs
- RootDesignerSerializerAttribute.cs
- RSAOAEPKeyExchangeFormatter.cs
- HttpStreamFormatter.cs
- WindowsFormsSectionHandler.cs