Share via


MeasureOverride Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Measures the size of the layout area required for child elements.

Namespace:  Microsoft.SPOT.Presentation.Controls
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

Syntax

'Declaration
Protected Overrides Sub MeasureOverride ( _
    availableWidth As Integer, _
    availableHeight As Integer, _
    <OutAttribute> ByRef desiredWidth As Integer, _
    <OutAttribute> ByRef desiredHeight As Integer _
)
protected override void MeasureOverride(
    int availableWidth,
    int availableHeight,
    out int desiredWidth,
    out int desiredHeight
)
protected:
virtual void MeasureOverride(
    int availableWidth, 
    int availableHeight, 
    [OutAttribute] int% desiredWidth, 
    [OutAttribute] int% desiredHeight
) override
abstract MeasureOverride : 
        availableWidth:int * 
        availableHeight:int * 
        desiredWidth:int byref * 
        desiredHeight:int byref -> unit 
override MeasureOverride : 
        availableWidth:int * 
        availableHeight:int * 
        desiredWidth:int byref * 
        desiredHeight:int byref -> unit 
protected override function MeasureOverride(
    availableWidth : int, 
    availableHeight : int, 
    desiredWidth : int, 
    desiredHeight : int
)

Parameters

  • availableWidth
    Type: System. . :: . .Int32
    The available width of the rectangular area that the panel can allocate to the child element.
  • availableHeight
    Type: System. . :: . .Int32
    The available height of the rectangular area that the panel can allocate to the child element.
  • desiredWidth
    Type: System. . :: . .Int32%
    The optimum width of the rectangular area that the panel is to allocate to the child element.
  • desiredHeight
    Type: System. . :: . .Int32%
    The optimum height of the rectangular area that the panel is to allocate to the child element.

.NET Framework Security

See Also

Reference

Panel Class

Microsoft.SPOT.Presentation.Controls Namespace