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
- TraceLevelStore.cs
- XmlReaderSettings.cs
- DataGridViewRowStateChangedEventArgs.cs
- GlyphingCache.cs
- InvalidCastException.cs
- COM2AboutBoxPropertyDescriptor.cs
- ClientFormsIdentity.cs
- FormViewPageEventArgs.cs
- ConnectionManagementElement.cs
- PolicyValidationException.cs
- CellNormalizer.cs
- ConfigsHelper.cs
- ChangeInterceptorAttribute.cs
- RequestSecurityTokenForGetBrowserToken.cs
- TextEndOfSegment.cs
- XmlRawWriterWrapper.cs
- KeyGesture.cs
- XmlSchemaObjectCollection.cs
- WsatRegistrationHeader.cs
- Missing.cs
- CompiledRegexRunner.cs
- ConditionalExpression.cs
- ContextItemManager.cs
- ContentIterators.cs
- FeatureSupport.cs
- PriorityBindingExpression.cs
- TextPointer.cs
- ListParagraph.cs
- ManipulationDelta.cs
- SortQuery.cs
- InputScopeConverter.cs
- EmptyQuery.cs
- ContextStack.cs
- WindowsStreamSecurityBindingElement.cs
- MgmtResManager.cs
- CodeDomLoader.cs
- MappingException.cs
- _TLSstream.cs
- MatcherBuilder.cs
- dataobject.cs
- HtmlShim.cs
- EpmHelper.cs
- KeyGestureConverter.cs
- GetImportFileNameRequest.cs
- CaseStatement.cs
- DataGridViewCellCollection.cs
- TraceProvider.cs
- DispatcherTimer.cs
- RelatedEnd.cs
- OutputCacheProfile.cs
- RegistryConfigurationProvider.cs
- SourceFilter.cs
- FilterRepeater.cs
- CheckBoxField.cs
- SequentialActivityDesigner.cs
- ConditionalAttribute.cs
- SspiHelper.cs
- ScriptResourceDefinition.cs
- SystemThemeKey.cs
- DefaultPropertyAttribute.cs
- TextBox.cs
- ConfigurationStrings.cs
- EnumerableCollectionView.cs
- ReversePositionQuery.cs
- X509Certificate.cs
- Popup.cs
- Config.cs
- TreeNodeBindingCollection.cs
- SystemException.cs
- VScrollBar.cs
- GeometryGroup.cs
- Number.cs
- UrlRoutingModule.cs
- DbDeleteCommandTree.cs
- WebPageTraceListener.cs
- DirectoryObjectSecurity.cs
- WeakHashtable.cs
- LoadRetryAsyncResult.cs
- DefaultTextStoreTextComposition.cs
- Journaling.cs
- DeviceSpecificChoiceCollection.cs
- SecurityMode.cs
- BindingUtils.cs
- ListBox.cs
- SafeThreadHandle.cs
- WebPartEventArgs.cs
- JpegBitmapDecoder.cs
- OleDbInfoMessageEvent.cs
- MenuAutoFormat.cs
- TextEditor.cs
- CacheSection.cs
- BaseParagraph.cs
- MatrixTransform3D.cs
- VisualTarget.cs
- EditorPartDesigner.cs
- FlowDecision.cs
- SaveFileDialog.cs
- MenuBase.cs
- XPathDocumentBuilder.cs
- CacheMemory.cs