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
- DES.cs
- PositiveTimeSpanValidator.cs
- AppLevelCompilationSectionCache.cs
- BinHexEncoder.cs
- GridViewHeaderRowPresenter.cs
- EntitySetRetriever.cs
- SemanticBasicElement.cs
- EventsTab.cs
- SqlDataSourceCommandEventArgs.cs
- StringSorter.cs
- BaseProcessProtocolHandler.cs
- WindowsAuthenticationModule.cs
- milexports.cs
- ComboBox.cs
- OrderedDictionaryStateHelper.cs
- FontStyles.cs
- PopupControlService.cs
- StaticSiteMapProvider.cs
- Debug.cs
- MarkupObject.cs
- BindingContext.cs
- ChannelDemuxer.cs
- EnumerableCollectionView.cs
- TableChangeProcessor.cs
- TableLayoutSettings.cs
- MemberPath.cs
- WorkflowHostingResponseContext.cs
- EllipseGeometry.cs
- MethodInfo.cs
- MailSettingsSection.cs
- MimeAnyImporter.cs
- WindowsRegion.cs
- CallbackValidator.cs
- EndpointNotFoundException.cs
- CapabilitiesAssignment.cs
- NTAccount.cs
- CrossContextChannel.cs
- DataObjectCopyingEventArgs.cs
- TraceEventCache.cs
- QueryResponse.cs
- SynchronizingStream.cs
- ImageFormat.cs
- ProfileInfo.cs
- Timer.cs
- DbProviderFactory.cs
- EditBehavior.cs
- MenuCommand.cs
- DataRelation.cs
- FolderBrowserDialogDesigner.cs
- ApplicationException.cs
- ToolStripDesignerUtils.cs
- ToolBarOverflowPanel.cs
- TableCell.cs
- XmlSchemaCollection.cs
- _NestedSingleAsyncResult.cs
- WorkflowPageSetupDialog.cs
- TextDecorations.cs
- ControlPropertyNameConverter.cs
- LineServicesRun.cs
- KnownAssemblyEntry.cs
- SystemIcmpV6Statistics.cs
- MetadataSource.cs
- FrameworkContentElement.cs
- FileCodeGroup.cs
- XmlSchemaImporter.cs
- DataTableReaderListener.cs
- AppSettingsSection.cs
- ToolStripTextBox.cs
- SchemaHelper.cs
- VectorCollectionConverter.cs
- TimeIntervalCollection.cs
- COM2TypeInfoProcessor.cs
- DatagridviewDisplayedBandsData.cs
- WeakHashtable.cs
- DbDataReader.cs
- BitmapFrameEncode.cs
- ProjectionCamera.cs
- ReadOnlyAttribute.cs
- itemelement.cs
- SafeLocalMemHandle.cs
- ObjectConverter.cs
- CharEntityEncoderFallback.cs
- CatalogZone.cs
- ButtonBaseAutomationPeer.cs
- DataGridViewColumnHeaderCell.cs
- ASCIIEncoding.cs
- RoleBoolean.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- CommandSet.cs
- AsymmetricAlgorithm.cs
- ConstructorNeedsTagAttribute.cs
- ListenerElementsCollection.cs
- GZipStream.cs
- Convert.cs
- MapPathBasedVirtualPathProvider.cs
- TextBoxBase.cs
- DetailsViewDeleteEventArgs.cs
- TakeOrSkipQueryOperator.cs
- MessageAction.cs
- AssociationSetEnd.cs