Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AutomationPropertyInfo.cs
- ImageBrush.cs
- SerializationSectionGroup.cs
- SplashScreenNativeMethods.cs
- XmlExtensionFunction.cs
- ActivityCompletionCallbackWrapper.cs
- ScrollViewer.cs
- SqlTypesSchemaImporter.cs
- StylusTip.cs
- CodeTypeReferenceSerializer.cs
- CompositeCollectionView.cs
- DynamicResourceExtension.cs
- CodeCatchClauseCollection.cs
- SiteMap.cs
- PasswordPropertyTextAttribute.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- ResourceDescriptionAttribute.cs
- TemplateBaseAction.cs
- DesignerSerializerAttribute.cs
- DbDataRecord.cs
- ProfileService.cs
- ScriptingProfileServiceSection.cs
- KeyboardEventArgs.cs
- TaiwanLunisolarCalendar.cs
- SafeCryptContextHandle.cs
- Rotation3DKeyFrameCollection.cs
- SkipQueryOptionExpression.cs
- TypeContext.cs
- RemotingConfigParser.cs
- DataGridRowsPresenter.cs
- DiscreteKeyFrames.cs
- NamespaceInfo.cs
- WindowsSlider.cs
- TrackingStringDictionary.cs
- DataServiceQueryProvider.cs
- ReferencedCollectionType.cs
- HttpHandlersSection.cs
- Point.cs
- NotSupportedException.cs
- OciHandle.cs
- XmlDigitalSignatureProcessor.cs
- Speller.cs
- Automation.cs
- UpdateException.cs
- ListCollectionView.cs
- Trustee.cs
- InternalPermissions.cs
- DrawingContextWalker.cs
- LassoHelper.cs
- SynchronizedInputPattern.cs
- ConfigurationStrings.cs
- CodeExporter.cs
- AddInActivator.cs
- PartialCachingAttribute.cs
- CharAnimationUsingKeyFrames.cs
- CriticalHandle.cs
- DataGridLengthConverter.cs
- ImpersonateTokenRef.cs
- SqlGenericUtil.cs
- DesignTimeData.cs
- UpdatePanelTriggerCollection.cs
- DataList.cs
- ResourceAttributes.cs
- xsdvalidator.cs
- CompModSwitches.cs
- TextEditorDragDrop.cs
- QilTypeChecker.cs
- ArrayListCollectionBase.cs
- ReflectionTypeLoadException.cs
- TaiwanCalendar.cs
- ImmutableCommunicationTimeouts.cs
- AsymmetricKeyExchangeDeformatter.cs
- UpdatePanelTrigger.cs
- ADMembershipUser.cs
- TcpClientChannel.cs
- SqlDataAdapter.cs
- EdmConstants.cs
- MetadataFile.cs
- SerializationInfo.cs
- Converter.cs
- ConfigurationValidatorAttribute.cs
- SerializationSectionGroup.cs
- GlobalEventManager.cs
- DPTypeDescriptorContext.cs
- EmissiveMaterial.cs
- BinaryFormatterWriter.cs
- CheckBox.cs
- MdiWindowListStrip.cs
- PagedDataSource.cs
- DataGridViewIntLinkedList.cs
- FixedStringLookup.cs
- WebSysDisplayNameAttribute.cs
- InternalConfigRoot.cs
- DataGridViewRowEventArgs.cs
- DriveNotFoundException.cs
- FullTextLine.cs
- Compilation.cs
- DisplayNameAttribute.cs
- SeverityFilter.cs
- IChannel.cs