This documentation is archived and is not being maintained.
Size Structure
Visual Studio 2008
Implements a structure that is used to describe the Size of an object.
Assembly: WindowsBase (in WindowsBase.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
The following example demonstrates how to use a Size structure in code.
Protected Overrides Function MeasureOverride(ByVal availableSize As System.Windows.Size) As System.Windows.Size Dim panelDesiredSize As New Size() For Each child As UIElement In InternalChildren child.Measure(availableSize) panelDesiredSize = child.DesiredSize Next Return panelDesiredSize End Function
More Code
| How to: Create an Elliptical Arc | This example shows how to draw an elliptical arc. To create an elliptical arc, use the PathGeometry, PathFigure, and ArcSegment classes. |
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: