Code:
/ 4.0 / 4.0 / 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. 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
- TransactionBridge.cs
- SqlMetaData.cs
- GenericTextProperties.cs
- NullReferenceException.cs
- ToolStripGrip.cs
- HttpsHostedTransportConfiguration.cs
- DesigntimeLicenseContextSerializer.cs
- TrackingDataItem.cs
- JsonQueryStringConverter.cs
- LocalizedNameDescriptionPair.cs
- ValidatedControlConverter.cs
- EntityDescriptor.cs
- DesignerActionHeaderItem.cs
- AsyncPostBackTrigger.cs
- DbParameterHelper.cs
- DashStyles.cs
- TypeExtensionConverter.cs
- BaseTemplateParser.cs
- MenuDesigner.cs
- Freezable.cs
- WebPartConnectionsCloseVerb.cs
- TraceContext.cs
- FieldAccessException.cs
- HyperLinkStyle.cs
- TableRowGroupCollection.cs
- CheckBoxStandardAdapter.cs
- CryptoApi.cs
- coordinatorfactory.cs
- FormatterConverter.cs
- WorkflowQueue.cs
- TraceProvider.cs
- UnsafeNativeMethods.cs
- FlowStep.cs
- LayoutInformation.cs
- SafeEventLogWriteHandle.cs
- OracleColumn.cs
- FilteredDataSetHelper.cs
- DBDataPermission.cs
- StsCommunicationException.cs
- ChainOfDependencies.cs
- SQLDecimal.cs
- DesignerToolStripControlHost.cs
- ConfigXmlCDataSection.cs
- ModelUIElement3D.cs
- MonthChangedEventArgs.cs
- FlowDocumentFormatter.cs
- TimeoutValidationAttribute.cs
- EncoderReplacementFallback.cs
- BoundPropertyEntry.cs
- SqlOuterApplyReducer.cs
- DataError.cs
- CountAggregationOperator.cs
- SelectedGridItemChangedEvent.cs
- Control.cs
- QilName.cs
- WmlObjectListAdapter.cs
- BooleanAnimationUsingKeyFrames.cs
- NetPipeSectionData.cs
- MsmqHostedTransportConfiguration.cs
- PerformanceCounterPermissionEntry.cs
- ScrollBarAutomationPeer.cs
- RowToParametersTransformer.cs
- GeneralTransform.cs
- FileAuthorizationModule.cs
- DataIdProcessor.cs
- TextLineResult.cs
- NaturalLanguageHyphenator.cs
- ExpressionPrefixAttribute.cs
- CssTextWriter.cs
- SafeFileHandle.cs
- GridViewRow.cs
- StreamWithDictionary.cs
- Activity.cs
- EpmContentDeSerializer.cs
- NotifyCollectionChangedEventArgs.cs
- TypeBrowser.xaml.cs
- GenericXmlSecurityToken.cs
- AliasExpr.cs
- BaseValidatorDesigner.cs
- NodeCounter.cs
- util.cs
- ToolStripOverflow.cs
- TableCellAutomationPeer.cs
- counter.cs
- PieceDirectory.cs
- ListViewGroupCollectionEditor.cs
- Util.cs
- OleDbEnumerator.cs
- AnnotationResource.cs
- ScaleTransform3D.cs
- ClickablePoint.cs
- ToolStripItemBehavior.cs
- Matrix3D.cs
- BamlBinaryWriter.cs
- SchemaImporter.cs
- LinqDataSourceInsertEventArgs.cs
- Attributes.cs
- TriggerActionCollection.cs
- PowerModeChangedEventArgs.cs
- StickyNote.cs