Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / KnownBoxes.cs / 1305600 / 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
- InterleavedZipPartStream.cs
- ObfuscationAttribute.cs
- ServiceNameElementCollection.cs
- FirstMatchCodeGroup.cs
- PageStatePersister.cs
- remotingproxy.cs
- TemporaryBitmapFile.cs
- BooleanFacetDescriptionElement.cs
- COM2IDispatchConverter.cs
- DesignerObjectListAdapter.cs
- PopupEventArgs.cs
- MethodBuilder.cs
- SerializationObjectManager.cs
- DictionaryKeyPropertyAttribute.cs
- DtcInterfaces.cs
- SQLMoneyStorage.cs
- ObjectView.cs
- GridViewSelectEventArgs.cs
- SslSecurityTokenParameters.cs
- WebBrowserBase.cs
- PerformanceCounterPermissionEntryCollection.cs
- AssemblyInfo.cs
- SafeHandles.cs
- PersonalizationProviderCollection.cs
- DataGridRow.cs
- WindowsFont.cs
- UpdateRecord.cs
- HttpAsyncResult.cs
- StaticContext.cs
- ResourcesBuildProvider.cs
- XmlReflectionMember.cs
- ModelItemImpl.cs
- RemotingSurrogateSelector.cs
- PtsHost.cs
- cookiecollection.cs
- Point3DAnimationUsingKeyFrames.cs
- GacUtil.cs
- TreeWalker.cs
- MSHTMLHost.cs
- ComNativeDescriptor.cs
- Encoder.cs
- Model3DGroup.cs
- SByteStorage.cs
- PolyQuadraticBezierSegment.cs
- SourceElementsCollection.cs
- IPPacketInformation.cs
- UIElementIsland.cs
- SpotLight.cs
- ToolStripHighContrastRenderer.cs
- StoreConnection.cs
- SystemInfo.cs
- AuthorizationRuleCollection.cs
- thaishape.cs
- _IPv4Address.cs
- XPathScanner.cs
- ForeignConstraint.cs
- ClaimComparer.cs
- ConditionCollection.cs
- AssemblyNameProxy.cs
- MediaEntryAttribute.cs
- ISSmlParser.cs
- MILUtilities.cs
- Atom10FeedFormatter.cs
- EventItfInfo.cs
- WinEventQueueItem.cs
- AssemblyBuilderData.cs
- MarginsConverter.cs
- DefaultCompensation.cs
- VectorKeyFrameCollection.cs
- ManagementEventArgs.cs
- TreeView.cs
- TypeExtensionSerializer.cs
- DataSourceCacheDurationConverter.cs
- OpenFileDialog.cs
- AnnotationHelper.cs
- ComboBoxItem.cs
- ElementAction.cs
- MonthCalendar.cs
- Point3DAnimationUsingKeyFrames.cs
- XmlNamespaceMapping.cs
- TextChangedEventArgs.cs
- WriteFileContext.cs
- DocumentOrderComparer.cs
- ECDiffieHellmanPublicKey.cs
- SafeProcessHandle.cs
- DetailsView.cs
- GAC.cs
- ReflectTypeDescriptionProvider.cs
- DesignerOptionService.cs
- XhtmlConformanceSection.cs
- XmlSchemaRedefine.cs
- TabControlEvent.cs
- MetafileHeaderWmf.cs
- Range.cs
- SystemInfo.cs
- MappedMetaModel.cs
- TextEndOfParagraph.cs
- FolderLevelBuildProvider.cs
- SystemIcmpV6Statistics.cs
- ReplyAdapterChannelListener.cs