Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DocumentGridContextMenu.cs
- TabPage.cs
- DisplayNameAttribute.cs
- GeneratedCodeAttribute.cs
- DatatypeImplementation.cs
- CompilationSection.cs
- SoapClientProtocol.cs
- OdbcFactory.cs
- AsyncContentLoadedEventArgs.cs
- TimelineGroup.cs
- DoubleStorage.cs
- BlockUIContainer.cs
- DataStorage.cs
- SchemaAttDef.cs
- Point.cs
- ImageKeyConverter.cs
- AssemblyContextControlItem.cs
- NotifyInputEventArgs.cs
- ClaimTypes.cs
- ProcessModelInfo.cs
- DataServiceEntityAttribute.cs
- Match.cs
- OleDbSchemaGuid.cs
- TCPClient.cs
- XmlWellformedWriter.cs
- HttpProfileGroupBase.cs
- XmlSchemaValidator.cs
- AndCondition.cs
- MergeFilterQuery.cs
- MasterPage.cs
- RTLAwareMessageBox.cs
- FontNameEditor.cs
- SqlExpander.cs
- TaiwanLunisolarCalendar.cs
- WebEventTraceProvider.cs
- ThreadAbortException.cs
- ToolboxItemFilterAttribute.cs
- SmiSettersStream.cs
- WebConfigurationManager.cs
- AuthorizationContext.cs
- webeventbuffer.cs
- ResourceCollectionInfo.cs
- QilFunction.cs
- AVElementHelper.cs
- DbDataReader.cs
- ListComponentEditorPage.cs
- BindingListCollectionView.cs
- BatchServiceHost.cs
- ValueQuery.cs
- StateBag.cs
- WSTrustFeb2005.cs
- ScriptHandlerFactory.cs
- DataGridCommandEventArgs.cs
- StringCollection.cs
- XmlSignificantWhitespace.cs
- IApplicationTrustManager.cs
- TypeCacheManager.cs
- DesignerDataColumn.cs
- DispatcherObject.cs
- DefaultHttpHandler.cs
- NullableIntMinMaxAggregationOperator.cs
- MediaTimeline.cs
- ProfilePropertySettingsCollection.cs
- counter.cs
- FormViewInsertEventArgs.cs
- RawStylusInput.cs
- GlyphsSerializer.cs
- BaseTemplateBuildProvider.cs
- _ShellExpression.cs
- ConfigXmlAttribute.cs
- TextEffectResolver.cs
- ImportCatalogPart.cs
- TypedMessageConverter.cs
- SourceCollection.cs
- EnumValidator.cs
- EntityStoreSchemaGenerator.cs
- InvokeProviderWrapper.cs
- StylusPointPropertyInfoDefaults.cs
- WSTrust.cs
- SetStoryboardSpeedRatio.cs
- DataGridViewAutoSizeModeEventArgs.cs
- AssemblyContextControlItem.cs
- SecurityDocument.cs
- DataSourceHelper.cs
- TreeViewImageIndexConverter.cs
- Command.cs
- SmtpLoginAuthenticationModule.cs
- TreeNodeStyle.cs
- AsyncResult.cs
- HtmlElement.cs
- XmlnsCache.cs
- WebPartZoneCollection.cs
- DebugView.cs
- Attachment.cs
- DefaultValueMapping.cs
- SByteStorage.cs
- XmlName.cs
- SqlGenerator.cs
- InternalControlCollection.cs
- ReferentialConstraint.cs