Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- QuerySelectOp.cs
- Directory.cs
- ProvidePropertyAttribute.cs
- WSHttpBindingBase.cs
- TracingConnectionInitiator.cs
- XmlQueryContext.cs
- JsonUriDataContract.cs
- WebPageTraceListener.cs
- TextRunCacheImp.cs
- ObjectViewEntityCollectionData.cs
- FormatSettings.cs
- ToolZoneDesigner.cs
- VirtualDirectoryMappingCollection.cs
- HttpChannelHelpers.cs
- Label.cs
- ReflectionUtil.cs
- CodeTypeOfExpression.cs
- X509ChainElement.cs
- PrePrepareMethodAttribute.cs
- LogSwitch.cs
- DataGridItemEventArgs.cs
- Environment.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ListControlBoundActionList.cs
- OraclePermissionAttribute.cs
- DataSourceProvider.cs
- ISFTagAndGuidCache.cs
- CheckBoxList.cs
- TableItemStyle.cs
- VariableAction.cs
- MaskInputRejectedEventArgs.cs
- OutputCacheSettingsSection.cs
- OutputCacheSettings.cs
- DSGeneratorProblem.cs
- ImplicitInputBrush.cs
- TextRangeProviderWrapper.cs
- ColumnHeader.cs
- ZeroOpNode.cs
- StringUtil.cs
- thaishape.cs
- ExcCanonicalXml.cs
- XmlComplianceUtil.cs
- IRCollection.cs
- SwitchElementsCollection.cs
- SoapObjectWriter.cs
- XmlStreamStore.cs
- Button.cs
- GroupBoxAutomationPeer.cs
- Int32.cs
- URIFormatException.cs
- CodeExporter.cs
- FormViewRow.cs
- ControlCommandSet.cs
- XmlSchemaGroupRef.cs
- ManipulationDeltaEventArgs.cs
- StreamInfo.cs
- FontStyles.cs
- ProfileManager.cs
- XmlILOptimizerVisitor.cs
- BamlLocalizer.cs
- InkCanvasAutomationPeer.cs
- UnsafeNativeMethods.cs
- LongValidator.cs
- EventItfInfo.cs
- controlskin.cs
- Transform3D.cs
- oledbconnectionstring.cs
- CodeBlockBuilder.cs
- PointAnimationBase.cs
- CallbackValidatorAttribute.cs
- SqlTriggerContext.cs
- Attributes.cs
- ResourceCategoryAttribute.cs
- TraceLevelHelper.cs
- DictionaryCustomTypeDescriptor.cs
- MarkupExtensionParser.cs
- Calendar.cs
- MessageQueue.cs
- WindowHelperService.cs
- DataObjectEventArgs.cs
- TextSelectionHelper.cs
- CornerRadiusConverter.cs
- DataGridViewCheckBoxCell.cs
- WebPartHeaderCloseVerb.cs
- ParseHttpDate.cs
- ParameterModifier.cs
- KnownIds.cs
- DuplexSecurityProtocolFactory.cs
- CompilationSection.cs
- ZipIOExtraField.cs
- XmlDataSourceView.cs
- StringInfo.cs
- SafeEventLogReadHandle.cs
- SecuritySessionSecurityTokenProvider.cs
- XmlSchemaComplexType.cs
- SymDocumentType.cs
- StateMachine.cs
- AdornerPresentationContext.cs
- DataSysAttribute.cs
- DefaultObjectSerializer.cs