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
- DataGridViewCellEventArgs.cs
- DataServiceQueryOfT.cs
- StringUtil.cs
- X509CertificateInitiatorClientCredential.cs
- TreeView.cs
- nulltextnavigator.cs
- EntityDataSourceMemberPath.cs
- WorkflowClientDeliverMessageWrapper.cs
- XhtmlBasicControlAdapter.cs
- CurrencyWrapper.cs
- BuildProviderAppliesToAttribute.cs
- ITreeGenerator.cs
- TextDecorationLocationValidation.cs
- HttpRequest.cs
- ArrayTypeMismatchException.cs
- TypeConverterHelper.cs
- NullToBooleanConverter.cs
- DataGridViewSelectedColumnCollection.cs
- DoubleKeyFrameCollection.cs
- CodeValidator.cs
- StrokeCollection.cs
- DbExpressionRules.cs
- InkPresenter.cs
- FocusChangedEventArgs.cs
- DeleteIndexBinder.cs
- ModuleElement.cs
- _DisconnectOverlappedAsyncResult.cs
- StyleCollectionEditor.cs
- AccessibilityHelperForVista.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ExpressionConverter.cs
- UpdatePanel.cs
- DataStorage.cs
- EntitySqlQueryBuilder.cs
- StringValidatorAttribute.cs
- AggregateNode.cs
- TCPClient.cs
- ParameterCollection.cs
- DnsEndPoint.cs
- Number.cs
- FormatSettings.cs
- GatewayDefinition.cs
- CasesDictionary.cs
- SizeValueSerializer.cs
- DecimalAverageAggregationOperator.cs
- XmlSerializerNamespaces.cs
- RolePrincipal.cs
- ListViewEditEventArgs.cs
- WindowsTab.cs
- TextBounds.cs
- ToolboxItemWrapper.cs
- SymDocumentType.cs
- OleDbParameterCollection.cs
- SmtpFailedRecipientsException.cs
- LinqDataSourceContextData.cs
- DataControlField.cs
- EntryWrittenEventArgs.cs
- ContextBase.cs
- DataObjectFieldAttribute.cs
- SessionSwitchEventArgs.cs
- HtmlMeta.cs
- wmiprovider.cs
- BitStream.cs
- RunClient.cs
- Conditional.cs
- RowTypeElement.cs
- HttpContextBase.cs
- userdatakeys.cs
- SortedDictionary.cs
- ColumnMapCopier.cs
- URLString.cs
- PermissionToken.cs
- MsmqInputMessage.cs
- RadioButtonStandardAdapter.cs
- RegistryExceptionHelper.cs
- PixelShader.cs
- SHA1CryptoServiceProvider.cs
- AuthenticatingEventArgs.cs
- InArgument.cs
- Visitors.cs
- BooleanFunctions.cs
- ClientSponsor.cs
- ClassImporter.cs
- NextPreviousPagerField.cs
- SourceElementsCollection.cs
- WsatAdminException.cs
- SafeThreadHandle.cs
- BitmapPalettes.cs
- FileVersionInfo.cs
- Parser.cs
- SiteMapNode.cs
- DrawListViewSubItemEventArgs.cs
- OrCondition.cs
- DataBindingExpressionBuilder.cs
- FrameworkElementFactory.cs
- ListMarkerLine.cs
- TrustLevelCollection.cs
- formatter.cs
- Math.cs
- StylusPointPropertyInfoDefaults.cs