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
- CodeThrowExceptionStatement.cs
- TraceHwndHost.cs
- LinearGradientBrush.cs
- GroupBoxAutomationPeer.cs
- ClassicBorderDecorator.cs
- PeerCollaborationPermission.cs
- CngKey.cs
- RegistryConfigurationProvider.cs
- TextRangeAdaptor.cs
- HtmlShimManager.cs
- CollectionViewGroupRoot.cs
- CodeDomSerializerBase.cs
- InstanceValue.cs
- UnionExpr.cs
- DrawingState.cs
- MaskPropertyEditor.cs
- UnicodeEncoding.cs
- DataGridViewSortCompareEventArgs.cs
- ArrayElementGridEntry.cs
- RawStylusInput.cs
- DbReferenceCollection.cs
- XmlSchemaSimpleContentRestriction.cs
- RecordsAffectedEventArgs.cs
- SoapEnvelopeProcessingElement.cs
- IpcManager.cs
- MailDefinition.cs
- Evaluator.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- CodeAssignStatement.cs
- ImageButton.cs
- FilteredDataSetHelper.cs
- MasterPageCodeDomTreeGenerator.cs
- FixedSOMContainer.cs
- MailDefinition.cs
- SqlCommand.cs
- VBCodeProvider.cs
- MethodCallConverter.cs
- CellRelation.cs
- MappingSource.cs
- GridViewPageEventArgs.cs
- ByteRangeDownloader.cs
- CodeNamespaceImport.cs
- WebHeaderCollection.cs
- ScopelessEnumAttribute.cs
- SafePEFileHandle.cs
- CustomMenuItemCollection.cs
- SoapAttributeOverrides.cs
- DateTimeHelper.cs
- IUnknownConstantAttribute.cs
- InstanceDataCollection.cs
- Point4DValueSerializer.cs
- COM2EnumConverter.cs
- HttpInputStream.cs
- OleDbFactory.cs
- CollectionTraceRecord.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- UnsafeNativeMethods.cs
- AuthenticationManager.cs
- FlowPanelDesigner.cs
- StoragePropertyMapping.cs
- EditingCoordinator.cs
- GetPageCompletedEventArgs.cs
- DBConcurrencyException.cs
- TrackingProfileDeserializationException.cs
- XmlDomTextWriter.cs
- ResourceDescriptionAttribute.cs
- ValidatingCollection.cs
- HatchBrush.cs
- ListViewSelectEventArgs.cs
- SafeEventHandle.cs
- DashStyles.cs
- DSASignatureDeformatter.cs
- FileDetails.cs
- DecoderBestFitFallback.cs
- ResourceDisplayNameAttribute.cs
- DLinqColumnProvider.cs
- VScrollProperties.cs
- BinaryObjectInfo.cs
- Transform3D.cs
- GroupDescription.cs
- ComIntegrationManifestGenerator.cs
- LineInfo.cs
- Rotation3DKeyFrameCollection.cs
- DispatcherExceptionFilterEventArgs.cs
- OperationAbortedException.cs
- ProviderConnectionPoint.cs
- RequiredFieldValidator.cs
- DataListComponentEditor.cs
- DataObject.cs
- DiscoveryRequestHandler.cs
- ProfileGroupSettingsCollection.cs
- NodeInfo.cs
- ToolTipService.cs
- XamlSerializerUtil.cs
- OperationParameterInfo.cs
- fixedPageContentExtractor.cs
- WebControlsSection.cs
- BinaryMethodMessage.cs
- InvariantComparer.cs
- EnumValAlphaComparer.cs