Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- KerberosTokenFactoryCredential.cs
- EventListener.cs
- ComEventsInfo.cs
- _NtlmClient.cs
- CodeDirectionExpression.cs
- WindowsListViewItemCheckBox.cs
- MsdtcClusterUtils.cs
- NativeRecognizer.cs
- BuildProvider.cs
- StringValidatorAttribute.cs
- BaseParaClient.cs
- DrawTreeNodeEventArgs.cs
- NativeMethods.cs
- WebPartEditorApplyVerb.cs
- ExtensionQuery.cs
- WindowInteropHelper.cs
- SqlDataSourceCommandEventArgs.cs
- FileNameEditor.cs
- ServiceEndpointCollection.cs
- HMACSHA512.cs
- MemoryRecordBuffer.cs
- TransformGroup.cs
- BrowserCapabilitiesFactory.cs
- RemotingConfiguration.cs
- SmtpNegotiateAuthenticationModule.cs
- printdlgexmarshaler.cs
- Choices.cs
- WebResponse.cs
- ProfileInfo.cs
- SystemResourceKey.cs
- ReadOnlyMetadataCollection.cs
- WebPartVerbCollection.cs
- HiddenFieldPageStatePersister.cs
- Dictionary.cs
- OpenTypeCommon.cs
- ScriptReference.cs
- DbConnectionFactory.cs
- RoutedPropertyChangedEventArgs.cs
- QueryableDataSourceView.cs
- TcpStreams.cs
- ClientApiGenerator.cs
- StringDictionaryWithComparer.cs
- MatrixUtil.cs
- PasswordBoxAutomationPeer.cs
- AuthenticationService.cs
- BinaryConverter.cs
- PnrpPermission.cs
- ITreeGenerator.cs
- XamlPathDataSerializer.cs
- DbConnectionPoolGroupProviderInfo.cs
- RangeBaseAutomationPeer.cs
- WebPartHelpVerb.cs
- Number.cs
- DocumentReference.cs
- UIElement3D.cs
- DiscreteKeyFrames.cs
- ScriptMethodAttribute.cs
- DependencyPropertyHelper.cs
- WebInvokeAttribute.cs
- FileUpload.cs
- Dictionary.cs
- StdValidatorsAndConverters.cs
- SoapEnumAttribute.cs
- CodeRemoveEventStatement.cs
- DataGridState.cs
- ProvidersHelper.cs
- HtmlObjectListAdapter.cs
- GeometryDrawing.cs
- PropertyConverter.cs
- QuadraticBezierSegment.cs
- PropertyGridView.cs
- SpellCheck.cs
- StructuralType.cs
- SQLBinaryStorage.cs
- SocketException.cs
- ThrowHelper.cs
- XmlDocumentFragment.cs
- DateTimeHelper.cs
- TextElementEnumerator.cs
- EncoderFallback.cs
- NegotiationTokenAuthenticator.cs
- ErrorFormatterPage.cs
- PersonalizablePropertyEntry.cs
- TableCellCollection.cs
- ImageClickEventArgs.cs
- ServiceDescriptionImporter.cs
- DataServiceProviderWrapper.cs
- Single.cs
- Deserializer.cs
- DataSourceControl.cs
- MessageBox.cs
- ExpandedProjectionNode.cs
- BamlCollectionHolder.cs
- ISAPIWorkerRequest.cs
- WebBrowserNavigatedEventHandler.cs
- PropertyValueChangedEvent.cs
- WebPartPersonalization.cs
- TextPointerBase.cs
- RuntimeEnvironment.cs
- Convert.cs