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
- arclist.cs
- GeneralTransform2DTo3D.cs
- ProvidersHelper.cs
- XmlSchemaAnyAttribute.cs
- PairComparer.cs
- SpotLight.cs
- PropertyDescriptor.cs
- CheckBoxList.cs
- EndpointBehaviorElement.cs
- BinaryWriter.cs
- TransformGroup.cs
- LockCookie.cs
- FontUnit.cs
- BamlLocalizabilityResolver.cs
- Border.cs
- Border.cs
- DrawingCollection.cs
- SortKey.cs
- LogExtentCollection.cs
- Internal.cs
- ModuleBuilderData.cs
- DataGridItemEventArgs.cs
- TypedElement.cs
- X509ChainPolicy.cs
- PerspectiveCamera.cs
- HierarchicalDataTemplate.cs
- LogicalTreeHelper.cs
- CodeNamespaceCollection.cs
- TreeViewImageKeyConverter.cs
- RecognizedAudio.cs
- PerformanceCounterLib.cs
- DataObjectSettingDataEventArgs.cs
- PlatformNotSupportedException.cs
- UIElementHelper.cs
- EdmSchemaError.cs
- ChannelBinding.cs
- AssemblyFilter.cs
- TrackingAnnotationCollection.cs
- compensatingcollection.cs
- TextMessageEncodingElement.cs
- SafeLocalMemHandle.cs
- FixedFindEngine.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- WorkerRequest.cs
- PropertyPath.cs
- SoapIncludeAttribute.cs
- XmlSchema.cs
- PositiveTimeSpanValidator.cs
- AuthenticationService.cs
- System.Data_BID.cs
- AsyncContentLoadedEventArgs.cs
- Misc.cs
- Deserializer.cs
- ParenthesizePropertyNameAttribute.cs
- TimeZone.cs
- MaterializeFromAtom.cs
- SqlXml.cs
- DispatcherTimer.cs
- Int64Converter.cs
- SqlDataReaderSmi.cs
- BrowserCapabilitiesCodeGenerator.cs
- WebPartDeleteVerb.cs
- AggregateNode.cs
- PeerToPeerException.cs
- TraceData.cs
- ConfigurationElementCollection.cs
- entityreference_tresulttype.cs
- ToolStrip.cs
- DataServiceRequestException.cs
- DesignerTransaction.cs
- TabItemWrapperAutomationPeer.cs
- MenuItem.cs
- Point4D.cs
- IPipelineRuntime.cs
- _StreamFramer.cs
- TextRange.cs
- CompiledELinqQueryState.cs
- TextSelectionProcessor.cs
- InternalBufferManager.cs
- BamlLocalizableResource.cs
- SelectorItemAutomationPeer.cs
- FastEncoderWindow.cs
- DataGridViewColumnHeaderCell.cs
- DataListCommandEventArgs.cs
- DataProtection.cs
- GenericsInstances.cs
- MsmqOutputMessage.cs
- MenuAutomationPeer.cs
- VisualStyleInformation.cs
- ExternalException.cs
- HierarchicalDataBoundControl.cs
- Funcletizer.cs
- RightNameExpirationInfoPair.cs
- IndividualDeviceConfig.cs
- NamedPipeAppDomainProtocolHandler.cs
- BinHexDecoder.cs
- HwndMouseInputProvider.cs
- WebHeaderCollection.cs
- UserControlAutomationPeer.cs
- LineServicesCallbacks.cs