Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- Fonts.cs
- MailSettingsSection.cs
- TextTreeRootNode.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- Oid.cs
- documentsequencetextcontainer.cs
- SafeEventLogWriteHandle.cs
- AnonymousIdentificationModule.cs
- ComponentCache.cs
- ControlIdConverter.cs
- FragmentQueryProcessor.cs
- MediaCommands.cs
- HttpBrowserCapabilitiesWrapper.cs
- XPathPatternParser.cs
- CleanUpVirtualizedItemEventArgs.cs
- Vector3DCollectionValueSerializer.cs
- PrintPreviewControl.cs
- SecuritySessionServerSettings.cs
- BoundColumn.cs
- TextMetrics.cs
- StrokeSerializer.cs
- TextTreeInsertElementUndoUnit.cs
- XPathAncestorIterator.cs
- SimpleWorkerRequest.cs
- WrapPanel.cs
- CodeLinePragma.cs
- DrawListViewColumnHeaderEventArgs.cs
- ProtocolsSection.cs
- UncommonField.cs
- WindowsGraphics2.cs
- CharEntityEncoderFallback.cs
- WorkflowMarkupSerializationManager.cs
- LiteralControl.cs
- StringUtil.cs
- UDPClient.cs
- DefaultValueAttribute.cs
- SupportsEventValidationAttribute.cs
- IdnMapping.cs
- OdbcUtils.cs
- StructuredTypeEmitter.cs
- ReflectionServiceProvider.cs
- SqlBuffer.cs
- FlowDocumentReaderAutomationPeer.cs
- Light.cs
- ScaleTransform.cs
- DateTimeConstantAttribute.cs
- UpDownBase.cs
- MimeObjectFactory.cs
- SqlConnection.cs
- PhysicalFontFamily.cs
- AuthStoreRoleProvider.cs
- XmlElementAttributes.cs
- WebPartZoneBase.cs
- ShapeTypeface.cs
- SqlSelectClauseBuilder.cs
- ComplexTypeEmitter.cs
- LowerCaseStringConverter.cs
- StorageInfo.cs
- LogManagementAsyncResult.cs
- EdmFunction.cs
- DataObjectMethodAttribute.cs
- PolyBezierSegment.cs
- ConvertTextFrag.cs
- UrlPropertyAttribute.cs
- XPathCompileException.cs
- IgnoreFileBuildProvider.cs
- XmlRootAttribute.cs
- VisualStyleElement.cs
- PrimitiveXmlSerializers.cs
- Material.cs
- ContourSegment.cs
- FormParameter.cs
- CodeNamespaceCollection.cs
- TreeNodeBinding.cs
- ResXResourceSet.cs
- MSAAWinEventWrap.cs
- UIEndRequest.cs
- SmtpDigestAuthenticationModule.cs
- HtmlGenericControl.cs
- ImageDrawing.cs
- ListControlConvertEventArgs.cs
- StringCollectionEditor.cs
- DataGridPagerStyle.cs
- SymbolEqualComparer.cs
- FlowLayoutSettings.cs
- SafeNativeMethods.cs
- LoadRetryConstantStrategy.cs
- PerformanceCounterLib.cs
- SettingsPropertyIsReadOnlyException.cs
- Baml6Assembly.cs
- COM2TypeInfoProcessor.cs
- UInt64Storage.cs
- DispatcherFrame.cs
- WebControlsSection.cs
- RegularExpressionValidator.cs
- XsltArgumentList.cs
- PowerModeChangedEventArgs.cs
- TextLineResult.cs
- AssemblyHelper.cs
- RawStylusSystemGestureInputReport.cs