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
- ParameterModifier.cs
- URLEditor.cs
- Descriptor.cs
- StrokeDescriptor.cs
- RelationshipDetailsRow.cs
- PersianCalendar.cs
- VisualTransition.cs
- MsmqAppDomainProtocolHandler.cs
- DrawingAttributeSerializer.cs
- TypeNameConverter.cs
- XmlNamespaceDeclarationsAttribute.cs
- EntityDataSourceView.cs
- DefaultProxySection.cs
- PathTooLongException.cs
- HwndStylusInputProvider.cs
- RemoteWebConfigurationHost.cs
- SqlMethods.cs
- Assert.cs
- RotateTransform.cs
- SecurityPolicySection.cs
- ExtentKey.cs
- SqlMethods.cs
- ThemeableAttribute.cs
- ScriptReference.cs
- AddInControllerImpl.cs
- PlaceHolder.cs
- KeySplineConverter.cs
- SimpleExpression.cs
- LogLogRecord.cs
- indexingfiltermarshaler.cs
- FixedStringLookup.cs
- MouseButton.cs
- RankException.cs
- Form.cs
- CompileXomlTask.cs
- BoundingRectTracker.cs
- SqlDataSourceCommandParser.cs
- WindowsClaimSet.cs
- CollectionBase.cs
- COAUTHINFO.cs
- Icon.cs
- TableLayoutPanelCodeDomSerializer.cs
- FixedPageProcessor.cs
- CircleHotSpot.cs
- HtmlHistory.cs
- InstanceLockQueryResult.cs
- ProtocolElementCollection.cs
- ApplicationProxyInternal.cs
- NopReturnReader.cs
- EmptyControlCollection.cs
- _HelperAsyncResults.cs
- XmlDataFileEditor.cs
- DbConnectionClosed.cs
- CodeEntryPointMethod.cs
- PassportAuthenticationEventArgs.cs
- ToolBarButtonDesigner.cs
- _Connection.cs
- GridViewEditEventArgs.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- WebUtil.cs
- WindowsPrincipal.cs
- ConfigsHelper.cs
- UpdateInfo.cs
- ButtonRenderer.cs
- LoginName.cs
- PartialTrustVisibleAssembliesSection.cs
- TreeSet.cs
- DynamicDataRouteHandler.cs
- EntityDataSourceContainerNameConverter.cs
- ExceptionTrace.cs
- XamlSerializer.cs
- BaseTransportHeaders.cs
- ActiveXHelper.cs
- XmlNamespaceMappingCollection.cs
- LambdaExpression.cs
- Exception.cs
- IxmlLineInfo.cs
- ComponentSerializationService.cs
- DbConnectionHelper.cs
- UserNamePasswordClientCredential.cs
- ObjectPropertyMapping.cs
- HtmlGenericControl.cs
- VirtualPathUtility.cs
- LinqDataSourceStatusEventArgs.cs
- ConfigXmlText.cs
- CircleHotSpot.cs
- BaseTemplateBuildProvider.cs
- HttpRuntimeSection.cs
- RenameRuleObjectDialog.cs
- RecognitionEventArgs.cs
- Oid.cs
- RowParagraph.cs
- RadioButtonBaseAdapter.cs
- MSAAEventDispatcher.cs
- SamlAssertionKeyIdentifierClause.cs
- DataServiceExpressionVisitor.cs
- SHA512Managed.cs
- NativeMethods.cs
- ContentDisposition.cs
- XmlSchemaSimpleTypeRestriction.cs