Code:
/ 4.0 / 4.0 / 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. 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
- EntityContainerEmitter.cs
- GroupedContextMenuStrip.cs
- StaticExtensionConverter.cs
- ListCommandEventArgs.cs
- ImagingCache.cs
- PointLight.cs
- GenericTextProperties.cs
- LogConverter.cs
- PathStreamGeometryContext.cs
- PrivilegeNotHeldException.cs
- XmlHierarchicalEnumerable.cs
- XamlStyleSerializer.cs
- RunInstallerAttribute.cs
- BindingBase.cs
- Int32RectValueSerializer.cs
- CLSCompliantAttribute.cs
- CommonGetThemePartSize.cs
- LogicalChannel.cs
- GridViewSortEventArgs.cs
- _NegoState.cs
- HasCopySemanticsAttribute.cs
- LinearGradientBrush.cs
- BuildProviderCollection.cs
- TransactionTraceIdentifier.cs
- ScalarOps.cs
- Geometry3D.cs
- HtmlTable.cs
- ObjectMemberMapping.cs
- FamilyTypeface.cs
- OSFeature.cs
- TableItemStyle.cs
- StringFunctions.cs
- DataGridViewComboBoxColumn.cs
- QueueProcessor.cs
- PDBReader.cs
- XmlConverter.cs
- XmlSchemaSimpleType.cs
- Material.cs
- DatePickerAutomationPeer.cs
- SmtpReplyReader.cs
- XmlNamespaceManager.cs
- GridViewSelectEventArgs.cs
- Win32PrintDialog.cs
- StringDictionaryCodeDomSerializer.cs
- MemberDomainMap.cs
- CodeGotoStatement.cs
- LineUtil.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- TypeUsageBuilder.cs
- PresentationUIStyleResources.cs
- lengthconverter.cs
- CodeTypeDeclaration.cs
- GenericQueueSurrogate.cs
- XmlValidatingReaderImpl.cs
- ItemsControlAutomationPeer.cs
- XmlSchemaExternal.cs
- SecurityHelper.cs
- CatalogPart.cs
- ListViewInsertionMark.cs
- CompositeCollectionView.cs
- NavigationExpr.cs
- ParenthesizePropertyNameAttribute.cs
- XmlDownloadManager.cs
- LabelLiteral.cs
- ServiceObjectContainer.cs
- OperationPerformanceCounters.cs
- OdbcParameterCollection.cs
- Utils.cs
- Timer.cs
- BlockingCollection.cs
- HttpProfileBase.cs
- CheckBox.cs
- Literal.cs
- DataPagerCommandEventArgs.cs
- ParsedAttributeCollection.cs
- ExpressionWriter.cs
- BaseParagraph.cs
- Normalization.cs
- SignatureConfirmationElement.cs
- Mappings.cs
- UIElement3D.cs
- BufferAllocator.cs
- DragDropHelper.cs
- ComboBox.cs
- WindowsListViewGroupSubsetLink.cs
- GridViewColumn.cs
- DecimalAnimationUsingKeyFrames.cs
- CompositionTarget.cs
- RelatedCurrencyManager.cs
- IISMapPath.cs
- OptimalBreakSession.cs
- BitmapEffectInput.cs
- GroupByExpressionRewriter.cs
- MetadataCache.cs
- StateItem.cs
- BitmapEffectrendercontext.cs
- ApplicationServiceManager.cs
- WindowsFormsHostAutomationPeer.cs
- RequestChannelBinder.cs
- CodeParameterDeclarationExpressionCollection.cs