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
- SQLMoney.cs
- NewExpression.cs
- FlowDocumentPaginator.cs
- IdleTimeoutMonitor.cs
- IriParsingElement.cs
- MessageSecurityProtocolFactory.cs
- datacache.cs
- FontFamily.cs
- ValueType.cs
- SerializationObjectManager.cs
- Symbol.cs
- WizardStepBase.cs
- PriorityRange.cs
- Visual3DCollection.cs
- MembershipValidatePasswordEventArgs.cs
- RequestQueryParser.cs
- SubMenuStyle.cs
- ADConnectionHelper.cs
- MethodBody.cs
- ListCollectionView.cs
- StylusPointPropertyId.cs
- DataGridViewHeaderCell.cs
- PerformanceCounterPermissionEntryCollection.cs
- JsonEnumDataContract.cs
- XamlBuildTaskServices.cs
- AnnotationService.cs
- ServiceBusyException.cs
- NamedPipeProcessProtocolHandler.cs
- ResourceDefaultValueAttribute.cs
- DataGridViewCellParsingEventArgs.cs
- ToolStripPanelSelectionBehavior.cs
- ContextDataSourceView.cs
- AttributeParameterInfo.cs
- BamlVersionHeader.cs
- TrackBarRenderer.cs
- CaseCqlBlock.cs
- SyndicationDeserializer.cs
- UrlMappingsSection.cs
- ComAwareEventInfo.cs
- ElementFactory.cs
- CursorConverter.cs
- EventLogTraceListener.cs
- ItemsPanelTemplate.cs
- PassportIdentity.cs
- ContentPlaceHolder.cs
- Byte.cs
- AttributeEmitter.cs
- StringValueSerializer.cs
- DayRenderEvent.cs
- XslAstAnalyzer.cs
- NestedContainer.cs
- PersistChildrenAttribute.cs
- CustomAttributeFormatException.cs
- DbProviderFactoriesConfigurationHandler.cs
- FlowNode.cs
- XmlIgnoreAttribute.cs
- WhitespaceSignificantCollectionAttribute.cs
- ClientRolePrincipal.cs
- ContentDisposition.cs
- FontUnit.cs
- BrowserCapabilitiesCodeGenerator.cs
- XmlSchemaType.cs
- HttpResponseInternalBase.cs
- CollectionContainer.cs
- BitmapEffectDrawing.cs
- Border.cs
- MDIWindowDialog.cs
- WSHttpBinding.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- ArgumentFixer.cs
- ToolBarTray.cs
- UnauthorizedAccessException.cs
- OuterGlowBitmapEffect.cs
- EntityCommand.cs
- KeyTimeConverter.cs
- RetrieveVirtualItemEventArgs.cs
- XmlAttributeAttribute.cs
- TaiwanLunisolarCalendar.cs
- FontFaceLayoutInfo.cs
- Registration.cs
- IntegerValidator.cs
- ComponentChangedEvent.cs
- TypeFieldSchema.cs
- ToolStripPanelRow.cs
- MouseGestureConverter.cs
- ImageMapEventArgs.cs
- SHA512Cng.cs
- ValueType.cs
- EmulateRecognizeCompletedEventArgs.cs
- LogReserveAndAppendState.cs
- DataControlField.cs
- BreadCrumbTextConverter.cs
- CreateUserWizardStep.cs
- PerspectiveCamera.cs
- SecurityDocument.cs
- RouteParameter.cs
- ObjectDataSourceStatusEventArgs.cs
- GeneralTransform3DGroup.cs
- ContentFileHelper.cs