Arrange Method

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

Positions child elements in a particular region on the screen.

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

Syntax

'Declaration
Public Sub Arrange ( _
    finalRectX As Integer, _
    finalRectY As Integer, _
    finalRectWidth As Integer, _
    finalRectHeight As Integer _
)
public void Arrange(
    int finalRectX,
    int finalRectY,
    int finalRectWidth,
    int finalRectHeight
)
public:
void Arrange(
    int finalRectX, 
    int finalRectY, 
    int finalRectWidth, 
    int finalRectHeight
)
member Arrange : 
        finalRectX:int * 
        finalRectY:int * 
        finalRectWidth:int * 
        finalRectHeight:int -> unit 
public function Arrange(
    finalRectX : int, 
    finalRectY : int, 
    finalRectWidth : int, 
    finalRectHeight : int
)

Parameters

  • finalRectX
    Type: System. . :: . .Int32
    The upper-left x-coordinate of the final rectangle that the parent uses to position the child element.
  • finalRectY
    Type: System. . :: . .Int32
    The upper-left y-coordinate of the final rectangle that the parent uses to position the child element.
  • finalRectWidth
    Type: System. . :: . .Int32
    The width of the final rectangle that the parent uses to position the child element.
  • finalRectHeight
    Type: System. . :: . .Int32
    The height of the final rectangle that the parent uses to position the child element.

Remarks

Calling this method constitutes the second pass of a layout update.

Computation of layout positioning in Windows Presentation Foundation (WPF) consists of a Measure method call and an Arrange method call. During the Measure call, an element determines its size requirements, using the specified available sizes. During the Arrange call, the element size is finalized and returned.

For derived elements, behavior of the Arrange method should not be changed (and cannot be changed, unless you shadow). Instead, you should override the ArrangeOverride method implementation in your class. Your ArrangeOverride implementation is called internally by the Arrange method as part of default layout operations.

.NET Framework Security

See Also

Reference

UIElement Class

Microsoft.SPOT.Presentation Namespace