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
- Message.cs
- SqlCacheDependencySection.cs
- MarkupWriter.cs
- SchemeSettingElement.cs
- InputLanguage.cs
- ReadOnlyCollection.cs
- BasicViewGenerator.cs
- LocatorGroup.cs
- IssuedTokenServiceElement.cs
- TextEffect.cs
- ListBindingConverter.cs
- DependencyObjectPropertyDescriptor.cs
- ListDictionaryInternal.cs
- TextUtf8RawTextWriter.cs
- ButtonFlatAdapter.cs
- XamlPoint3DCollectionSerializer.cs
- WebPartCatalogAddVerb.cs
- StatusBarDrawItemEvent.cs
- CommentEmitter.cs
- Models.cs
- DataGridViewCell.cs
- AssociationSetEnd.cs
- x509store.cs
- XmlElementAttributes.cs
- ResXResourceWriter.cs
- WebPartDescriptionCollection.cs
- HttpWebResponse.cs
- CommandLibraryHelper.cs
- ProtocolsConfigurationEntry.cs
- FormViewCommandEventArgs.cs
- Style.cs
- Helper.cs
- ContractTypeNameCollection.cs
- SqlConnectionString.cs
- StructuredType.cs
- SemanticTag.cs
- FuncCompletionCallbackWrapper.cs
- Int32EqualityComparer.cs
- EdmError.cs
- WebProxyScriptElement.cs
- AssociationTypeEmitter.cs
- SimpleType.cs
- KeyMatchBuilder.cs
- TraceUtils.cs
- HttpCookiesSection.cs
- MethodRental.cs
- BlockExpression.cs
- MultipartIdentifier.cs
- HttpHandlerActionCollection.cs
- SerializationAttributes.cs
- CharacterBufferReference.cs
- UserNameServiceElement.cs
- ReferenceEqualityComparer.cs
- ExtensibleClassFactory.cs
- ExtenderProvidedPropertyAttribute.cs
- DisplayInformation.cs
- HttpListenerRequest.cs
- InstanceDescriptor.cs
- ListViewCancelEventArgs.cs
- GridEntry.cs
- Wrapper.cs
- SchemaImporterExtensionElement.cs
- SynchronizedPool.cs
- ContentFilePart.cs
- InfoCardTraceRecord.cs
- HttpProfileBase.cs
- TcpStreams.cs
- CfgParser.cs
- DeviceContexts.cs
- Message.cs
- AppDomainProtocolHandler.cs
- CollectionBuilder.cs
- ILGenerator.cs
- DbQueryCommandTree.cs
- RightNameExpirationInfoPair.cs
- ToolboxItemWrapper.cs
- Label.cs
- GenerateScriptTypeAttribute.cs
- HideDisabledControlAdapter.cs
- InstallerTypeAttribute.cs
- ProfilePropertyNameValidator.cs
- ContentPosition.cs
- FunctionDescription.cs
- MetadataUtilsSmi.cs
- NavigationProgressEventArgs.cs
- RenderData.cs
- DataKeyPropertyAttribute.cs
- FormViewRow.cs
- WebServiceMethodData.cs
- GlobalProxySelection.cs
- MemoryStream.cs
- ExtensionQuery.cs
- SessionStateModule.cs
- HttpCacheVaryByContentEncodings.cs
- WebPartTracker.cs
- wgx_sdk_version.cs
- StateMachineExecutionState.cs
- XmlQueryOutput.cs
- Registration.cs
- URLMembershipCondition.cs