Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- InputElement.cs
- SecureStringHasher.cs
- ListManagerBindingsCollection.cs
- WizardPanelChangingEventArgs.cs
- AssemblyInfo.cs
- AnnotationAuthorChangedEventArgs.cs
- MultipartContentParser.cs
- ProviderConnectionPoint.cs
- PointCollectionConverter.cs
- SubordinateTransaction.cs
- ExpressionList.cs
- DBConcurrencyException.cs
- LineMetrics.cs
- LayoutTable.cs
- DbDataReader.cs
- PersonalizationEntry.cs
- SecurityPermission.cs
- GraphicsContainer.cs
- BooleanAnimationUsingKeyFrames.cs
- StateDesigner.cs
- ItemMap.cs
- CheckBoxList.cs
- BaseValidator.cs
- GenericFlowSwitchHelper.cs
- MailMessageEventArgs.cs
- GeometryDrawing.cs
- OdbcDataReader.cs
- ThreadInterruptedException.cs
- ResourceKey.cs
- ThreadExceptionDialog.cs
- PropertyValueChangedEvent.cs
- DashStyles.cs
- SqlConnectionFactory.cs
- XmlAttributes.cs
- ResourceDescriptionAttribute.cs
- FileLoadException.cs
- FileAuthorizationModule.cs
- _SslState.cs
- Line.cs
- MsmqReceiveHelper.cs
- TemplateControlCodeDomTreeGenerator.cs
- EntityDataSourceValidationException.cs
- FixedSOMSemanticBox.cs
- XmlCDATASection.cs
- ThemeableAttribute.cs
- FixedSOMFixedBlock.cs
- LayoutDump.cs
- ControlOperationInvoker.cs
- ScrollPatternIdentifiers.cs
- HttpListenerRequestUriBuilder.cs
- BitmapEffectInput.cs
- ClientViaElement.cs
- XmlAttributeOverrides.cs
- OrderedDictionaryStateHelper.cs
- TreeNodeCollection.cs
- UIElement.cs
- AlgoModule.cs
- RelationshipNavigation.cs
- FormsAuthenticationEventArgs.cs
- PreservationFileReader.cs
- ComboBox.cs
- XPathNodeInfoAtom.cs
- DynamicRendererThreadManager.cs
- Char.cs
- DelegateSerializationHolder.cs
- PropertyIdentifier.cs
- PageCatalogPart.cs
- Triplet.cs
- DateTimeFormatInfo.cs
- EditorBrowsableAttribute.cs
- SingleConverter.cs
- CodeEntryPointMethod.cs
- MetafileHeader.cs
- XmlHierarchicalEnumerable.cs
- SmiEventSink_Default.cs
- HttpRuntimeSection.cs
- FontSourceCollection.cs
- DataGridTablesFactory.cs
- StylusDevice.cs
- CallbackHandler.cs
- ParallelActivityDesigner.cs
- PersianCalendar.cs
- UrlPropertyAttribute.cs
- DoubleMinMaxAggregationOperator.cs
- XmlMapping.cs
- ParameterEditorUserControl.cs
- UserInitiatedRoutedEventPermission.cs
- ChangeNode.cs
- EpmHelper.cs
- UnsafeNativeMethodsMilCoreApi.cs
- PrimitiveCodeDomSerializer.cs
- CompModHelpers.cs
- MethodBody.cs
- RuntimeWrappedException.cs
- MetadataItem.cs
- CursorConverter.cs
- ExpressionPrefixAttribute.cs
- TextDecorationCollectionConverter.cs
- ParameterElement.cs
- InputMethodStateChangeEventArgs.cs