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
- _Semaphore.cs
- MultiPartWriter.cs
- PenThreadWorker.cs
- SystemNetworkInterface.cs
- XmlnsCache.cs
- ReadingWritingEntityEventArgs.cs
- CellQuery.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- XPathDocumentIterator.cs
- SettingsPropertyValue.cs
- Handle.cs
- MouseEvent.cs
- NameValuePair.cs
- QueryPageSettingsEventArgs.cs
- DefaultValueTypeConverter.cs
- RoleProviderPrincipal.cs
- AccessKeyManager.cs
- BufferedGraphicsManager.cs
- BaseParser.cs
- Parsers.cs
- IteratorFilter.cs
- BindingCompleteEventArgs.cs
- TextContainerHelper.cs
- ScriptingAuthenticationServiceSection.cs
- SymbolPair.cs
- _NegotiateClient.cs
- MenuItem.cs
- StoreItemCollection.cs
- BCLDebug.cs
- ExtensionWindowHeader.cs
- BuilderPropertyEntry.cs
- Internal.cs
- HexParser.cs
- DataTableTypeConverter.cs
- DataList.cs
- HtmlInputButton.cs
- SafeCertificateStore.cs
- NodeInfo.cs
- ASCIIEncoding.cs
- ListMarkerSourceInfo.cs
- COSERVERINFO.cs
- TreeNodeSelectionProcessor.cs
- SqlParameterCollection.cs
- QueryCoreOp.cs
- PrePostDescendentsWalker.cs
- DataGridViewCellValueEventArgs.cs
- FormatterServices.cs
- UseLicense.cs
- ChildDocumentBlock.cs
- PolicyStatement.cs
- WorkflowInstanceSuspendedRecord.cs
- Boolean.cs
- SqlRowUpdatingEvent.cs
- HashMembershipCondition.cs
- ElementAction.cs
- ValidatedControlConverter.cs
- DeferrableContentConverter.cs
- ChannelReliableSession.cs
- DataGridViewDesigner.cs
- DetailsViewUpdatedEventArgs.cs
- WindowsTreeView.cs
- Parsers.cs
- HitTestParameters.cs
- StorageAssociationSetMapping.cs
- XmlElementAttribute.cs
- EmbeddedMailObjectCollectionEditor.cs
- PolyLineSegment.cs
- VariableQuery.cs
- LassoHelper.cs
- DataGrid.cs
- QilCloneVisitor.cs
- ToolBarOverflowPanel.cs
- AnnotationService.cs
- BufferedWebEventProvider.cs
- TypeToStringValueConverter.cs
- InputProviderSite.cs
- CommandField.cs
- DataPagerField.cs
- DWriteFactory.cs
- UserNameSecurityToken.cs
- DetailsViewInsertedEventArgs.cs
- NopReturnReader.cs
- DrawingImage.cs
- WebEncodingValidator.cs
- ResXBuildProvider.cs
- Timer.cs
- ReflectPropertyDescriptor.cs
- TypeListConverter.cs
- SqlDependencyListener.cs
- VerticalAlignConverter.cs
- Logging.cs
- DiagnosticTraceRecords.cs
- ToolStripMenuItem.cs
- PartialList.cs
- AdapterUtil.cs
- GeometryGroup.cs
- StorageEntitySetMapping.cs
- GeometryDrawing.cs
- XmlC14NWriter.cs
- PropertyManager.cs