Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- MdImport.cs
- Rights.cs
- Visual3DCollection.cs
- CompilerScope.cs
- FixedSOMTableRow.cs
- Matrix.cs
- ContentElementCollection.cs
- RecordBuilder.cs
- PeerTransportSecurityElement.cs
- ApplicationProxyInternal.cs
- DefaultMemberAttribute.cs
- DataColumnMapping.cs
- BindingWorker.cs
- XamlTypeMapper.cs
- DiscardableAttribute.cs
- StaticFileHandler.cs
- PersonalizationProviderHelper.cs
- PolicyManager.cs
- TrueReadOnlyCollection.cs
- FacetDescription.cs
- PackagePartCollection.cs
- CookielessHelper.cs
- AccessedThroughPropertyAttribute.cs
- LocalBuilder.cs
- MetadataItemEmitter.cs
- SHA384.cs
- CheckableControlBaseAdapter.cs
- EdmConstants.cs
- ReadOnlyNameValueCollection.cs
- Encoding.cs
- DeploymentSectionCache.cs
- WinInetCache.cs
- UDPClient.cs
- FormViewPageEventArgs.cs
- UriPrefixTable.cs
- TimeSpanMinutesConverter.cs
- KnowledgeBase.cs
- SamlAttribute.cs
- ContextStack.cs
- GetWinFXPath.cs
- SafeLibraryHandle.cs
- XmlCharCheckingWriter.cs
- Table.cs
- SafeRightsManagementHandle.cs
- SubqueryRules.cs
- FieldBuilder.cs
- SafeCoTaskMem.cs
- OpenTypeLayoutCache.cs
- BindableTemplateBuilder.cs
- PeerConnector.cs
- DebugView.cs
- VectorValueSerializer.cs
- TimelineGroup.cs
- WebServiceMethodData.cs
- MessageContractMemberAttribute.cs
- MailWriter.cs
- NamespaceQuery.cs
- EndPoint.cs
- SubMenuStyleCollection.cs
- QilInvokeLateBound.cs
- TextDecorationUnitValidation.cs
- StateChangeEvent.cs
- Schema.cs
- SqlDataSource.cs
- RequestCache.cs
- InputManager.cs
- BuilderPropertyEntry.cs
- InternalCompensate.cs
- OrthographicCamera.cs
- AuthenticationModulesSection.cs
- ContextMenuAutomationPeer.cs
- DetailsViewUpdateEventArgs.cs
- TriggerAction.cs
- TextOutput.cs
- HostingEnvironmentException.cs
- XmlIlTypeHelper.cs
- Group.cs
- storepermission.cs
- EnumerableCollectionView.cs
- PathGradientBrush.cs
- TreeWalker.cs
- DictationGrammar.cs
- DockPatternIdentifiers.cs
- DbgUtil.cs
- Crc32.cs
- Timer.cs
- BaseDataListDesigner.cs
- DebugController.cs
- Method.cs
- EventLog.cs
- ScrollableControl.cs
- EventWaitHandleSecurity.cs
- KnownIds.cs
- FacetDescriptionElement.cs
- ComponentManagerBroker.cs
- Operand.cs
- MouseGestureConverter.cs
- WebSysDefaultValueAttribute.cs
- FieldInfo.cs
- EventDriven.cs