Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TableRowCollection.cs
- XmlSerializationWriter.cs
- BinaryParser.cs
- RijndaelManagedTransform.cs
- DateTimeOffsetStorage.cs
- LZCodec.cs
- SqlResolver.cs
- PropertyCondition.cs
- BaseParser.cs
- UtilityExtension.cs
- _RegBlobWebProxyDataBuilder.cs
- RoleGroupCollection.cs
- GeometryDrawing.cs
- ThemeDirectoryCompiler.cs
- DataKey.cs
- ConsoleCancelEventArgs.cs
- StringFunctions.cs
- HtmlUtf8RawTextWriter.cs
- DrawingAttributesDefaultValueFactory.cs
- Matrix3DConverter.cs
- FormViewInsertedEventArgs.cs
- BitmapDecoder.cs
- TileBrush.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- BoundPropertyEntry.cs
- HtmlTableRowCollection.cs
- BooleanSwitch.cs
- NCryptNative.cs
- AnimatedTypeHelpers.cs
- ToolBar.cs
- SimpleTypesSurrogate.cs
- ObjectReaderCompiler.cs
- SqlRowUpdatingEvent.cs
- File.cs
- QilTargetType.cs
- UnsafeNativeMethods.cs
- FlowSwitchDesigner.xaml.cs
- DebuggerAttributes.cs
- SqlOuterApplyReducer.cs
- DoubleLinkList.cs
- WinFormsUtils.cs
- RootBrowserWindow.cs
- WebBrowserNavigatedEventHandler.cs
- HMACSHA1.cs
- DebuggerAttributes.cs
- RelatedEnd.cs
- SmiContextFactory.cs
- EventManager.cs
- SamlSecurityTokenAuthenticator.cs
- VisualStyleInformation.cs
- HasCopySemanticsAttribute.cs
- SafeUserTokenHandle.cs
- ConsoleKeyInfo.cs
- QilUnary.cs
- OrderByBuilder.cs
- _LoggingObject.cs
- JumpPath.cs
- SqlTriggerContext.cs
- SystemWebSectionGroup.cs
- PersonalizationProvider.cs
- CodeExpressionStatement.cs
- altserialization.cs
- DateTimeFormatInfoScanner.cs
- FocusChangedEventArgs.cs
- ColumnCollectionEditor.cs
- ParameterElementCollection.cs
- AttributeData.cs
- ItemCheckEvent.cs
- CompressEmulationStream.cs
- ContractInferenceHelper.cs
- CharKeyFrameCollection.cs
- CompilationPass2Task.cs
- HttpRawResponse.cs
- DataPagerFieldItem.cs
- AuthenticationServiceManager.cs
- DynamicDataManager.cs
- SeparatorAutomationPeer.cs
- Comparer.cs
- TransportChannelListener.cs
- ConnectionPoint.cs
- CfgArc.cs
- ImageMetadata.cs
- EventTask.cs
- FixedTextContainer.cs
- ILGenerator.cs
- DispatcherFrame.cs
- FontStretch.cs
- PreProcessInputEventArgs.cs
- FixedElement.cs
- DataTableMappingCollection.cs
- Mutex.cs
- MetadataCollection.cs
- BaseCodePageEncoding.cs
- Type.cs
- AnnouncementClient.cs
- DescendantQuery.cs
- GridViewRowPresenterBase.cs
- NavigationPropertyAccessor.cs
- TogglePatternIdentifiers.cs
- TagPrefixAttribute.cs