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
- SplitContainer.cs
- ProcessThread.cs
- CustomSignedXml.cs
- ZipIOExtraFieldElement.cs
- WriteTimeStream.cs
- BamlVersionHeader.cs
- DynamicPropertyHolder.cs
- GZipStream.cs
- FactorySettingsElement.cs
- TransactionContext.cs
- XmlSchemaGroup.cs
- Point4DConverter.cs
- RowBinding.cs
- RichTextBox.cs
- ProfilePropertySettingsCollection.cs
- PropertyGroupDescription.cs
- InputLanguageManager.cs
- FontStretch.cs
- DesignerDataColumn.cs
- TransformGroup.cs
- PackageRelationship.cs
- NullEntityWrapper.cs
- AssociationTypeEmitter.cs
- GridEntryCollection.cs
- QueryOutputWriter.cs
- DataSourceXmlAttributeAttribute.cs
- MemoryPressure.cs
- DefaultEvaluationContext.cs
- WorkflowDebuggerSteppingAttribute.cs
- SQLBoolean.cs
- GC.cs
- TemplateBindingExpressionConverter.cs
- MergeLocalizationDirectives.cs
- IDispatchConstantAttribute.cs
- TabletDevice.cs
- ServiceObjectContainer.cs
- PropertyExpression.cs
- Matrix.cs
- ProgressBar.cs
- XmlDocumentFragment.cs
- PathFigureCollection.cs
- CellIdBoolean.cs
- ColorMap.cs
- XmlSchemaExporter.cs
- FullTrustAssembliesSection.cs
- RegexWriter.cs
- TreeNodeBinding.cs
- NameSpaceExtractor.cs
- XmlDataCollection.cs
- VideoDrawing.cs
- SqlParameter.cs
- ObjectRef.cs
- StrokeNode.cs
- BindingGroup.cs
- ComplexBindingPropertiesAttribute.cs
- Normalization.cs
- TreeNodeStyleCollection.cs
- RowBinding.cs
- DecimalKeyFrameCollection.cs
- StringInfo.cs
- UnsafeNativeMethodsMilCoreApi.cs
- BlobPersonalizationState.cs
- QilBinary.cs
- HtmlWindow.cs
- TypeSystem.cs
- Tablet.cs
- SoapElementAttribute.cs
- OleDbStruct.cs
- SessionPageStateSection.cs
- CodeNamespaceImport.cs
- ActivityCodeGenerator.cs
- InstanceKeyView.cs
- XmlSerializerFactory.cs
- CategoryGridEntry.cs
- CodeCompiler.cs
- SystemColors.cs
- MetadataItem_Static.cs
- CodeSnippetCompileUnit.cs
- XhtmlBasicLabelAdapter.cs
- MsmqHostedTransportConfiguration.cs
- StreamGeometryContext.cs
- AuthenticateEventArgs.cs
- COAUTHINFO.cs
- KnowledgeBase.cs
- JsonUriDataContract.cs
- OdbcParameter.cs
- AnnotationComponentManager.cs
- ToolbarAUtomationPeer.cs
- ScrollContentPresenter.cs
- DataDocumentXPathNavigator.cs
- DateTimePicker.cs
- InvalidCastException.cs
- NameValueFileSectionHandler.cs
- StopStoryboard.cs
- Duration.cs
- relpropertyhelper.cs
- QuadraticBezierSegment.cs
- FlowLayoutSettings.cs
- WebPartVerbsEventArgs.cs
- RegexGroup.cs