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
- InvokeSchedule.cs
- DbSourceCommand.cs
- HyperLink.cs
- IndexerNameAttribute.cs
- GestureRecognizer.cs
- ApplicationInfo.cs
- WebConfigurationManager.cs
- XmlElementAttribute.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- XPathAncestorIterator.cs
- DataGridViewColumn.cs
- CodeBlockBuilder.cs
- ChannelManager.cs
- SystemBrushes.cs
- Trustee.cs
- FreezableCollection.cs
- Visual3D.cs
- ProjectionPlan.cs
- ReadOnlyPropertyMetadata.cs
- CFStream.cs
- AnyReturnReader.cs
- HostVisual.cs
- XmlSchemaAppInfo.cs
- ActivityExecutor.cs
- CompensationToken.cs
- InputLanguageCollection.cs
- NavigatorOutput.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- QueryContext.cs
- ExpressionValueEditor.cs
- DoubleKeyFrameCollection.cs
- BinarySerializer.cs
- EntityContainer.cs
- NonSerializedAttribute.cs
- baseaxisquery.cs
- Matrix3D.cs
- SimpleLine.cs
- FormViewDeletedEventArgs.cs
- DataBindingCollection.cs
- ProtocolException.cs
- RegexTree.cs
- MD5.cs
- DefaultBinder.cs
- WorkflowDesignerMessageFilter.cs
- EncodingDataItem.cs
- XmlProcessingInstruction.cs
- AvtEvent.cs
- NumberEdit.cs
- GlobalEventManager.cs
- ContentElement.cs
- PopupEventArgs.cs
- RecipientInfo.cs
- Viewport3DVisual.cs
- ArraySubsetEnumerator.cs
- SqlConnection.cs
- EventBuilder.cs
- AttributeEmitter.cs
- CodeSnippetTypeMember.cs
- CacheModeConverter.cs
- XmlDataProvider.cs
- StringHandle.cs
- Control.cs
- ControlCollection.cs
- ListComponentEditorPage.cs
- XmlValueConverter.cs
- connectionpool.cs
- EditCommandColumn.cs
- ProcessThreadCollection.cs
- UdpContractFilterBehavior.cs
- ExtenderProvidedPropertyAttribute.cs
- HttpHeaderCollection.cs
- JsonWriterDelegator.cs
- HtmlAnchor.cs
- EntityDataSourceChangedEventArgs.cs
- ScrollViewer.cs
- TableColumn.cs
- EntityDataSourceColumn.cs
- CngAlgorithmGroup.cs
- MenuAdapter.cs
- SizeKeyFrameCollection.cs
- TextEndOfLine.cs
- DropTarget.cs
- DataGridViewColumn.cs
- RegexReplacement.cs
- WMICapabilities.cs
- WhitespaceSignificantCollectionAttribute.cs
- ToolstripProfessionalRenderer.cs
- TextEndOfSegment.cs
- IntegerCollectionEditor.cs
- JsonXmlDataContract.cs
- SoapSchemaExporter.cs
- DataGridViewColumnConverter.cs
- UniqueIdentifierService.cs
- JsonWriter.cs
- XmlSerializerImportOptions.cs
- SiteOfOriginContainer.cs
- ServiceObjectContainer.cs
- NavigatingCancelEventArgs.cs
- TagMapInfo.cs
- EventLog.cs