Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Inline.cs
- HealthMonitoringSection.cs
- SubMenuStyleCollection.cs
- ReadOnlyDictionary.cs
- CaseCqlBlock.cs
- CodeLinePragma.cs
- DrawTreeNodeEventArgs.cs
- MetadataItemEmitter.cs
- InfoCardSymmetricCrypto.cs
- AnimatedTypeHelpers.cs
- CapiNative.cs
- DescendentsWalkerBase.cs
- latinshape.cs
- _OverlappedAsyncResult.cs
- Group.cs
- EmptyQuery.cs
- _KerberosClient.cs
- ConfigXmlCDataSection.cs
- Margins.cs
- CacheEntry.cs
- BamlMapTable.cs
- SourceFilter.cs
- XmlProcessingInstruction.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- NameSpaceEvent.cs
- RoleGroupCollection.cs
- ButtonBaseAutomationPeer.cs
- MenuAutomationPeer.cs
- GridItem.cs
- TrackingMemoryStreamFactory.cs
- SecurityPermission.cs
- RecognitionResult.cs
- OpenTypeLayoutCache.cs
- DbSourceCommand.cs
- NativeMethods.cs
- AddInServer.cs
- SizeF.cs
- TabRenderer.cs
- CollectionView.cs
- GlobalEventManager.cs
- SessionStateSection.cs
- ComboBoxRenderer.cs
- MSHTMLHost.cs
- Activity.cs
- RepeatButton.cs
- NumberAction.cs
- InkCanvasInnerCanvas.cs
- Main.cs
- Label.cs
- TagNameToTypeMapper.cs
- M3DUtil.cs
- BuildManager.cs
- RuntimeConfig.cs
- ListViewEditEventArgs.cs
- Camera.cs
- Header.cs
- BaseAsyncResult.cs
- Int64AnimationUsingKeyFrames.cs
- WindowsSpinner.cs
- InvalidProgramException.cs
- GraphicsPathIterator.cs
- Interop.cs
- EventLogWatcher.cs
- TiffBitmapDecoder.cs
- SelectionEditingBehavior.cs
- Span.cs
- AsyncMethodInvoker.cs
- Buffer.cs
- SortDescription.cs
- PipelineComponent.cs
- EntityConnectionStringBuilder.cs
- SQLRoleProvider.cs
- ButtonBase.cs
- ToolStripItem.cs
- _NativeSSPI.cs
- TextEditorLists.cs
- PerformanceCounterPermission.cs
- ToolStripLocationCancelEventArgs.cs
- Hashtable.cs
- SaveFileDialog.cs
- RegisteredDisposeScript.cs
- StaticResourceExtension.cs
- DefaultSerializationProviderAttribute.cs
- XmlSchemaValidator.cs
- HitTestFilterBehavior.cs
- DbDataAdapter.cs
- ChangeTracker.cs
- StoreItemCollection.Loader.cs
- TransactionState.cs
- DocumentGrid.cs
- CodeDirectoryCompiler.cs
- Convert.cs
- TypeDescriptionProvider.cs
- Line.cs
- DesignerOptionService.cs
- PrimitiveType.cs
- ConfigurationStrings.cs
- httpserverutility.cs
- TextEffect.cs
- EntityDataSourceChangingEventArgs.cs