Northwoods.GoWPF 1.3.5 Assembly
MakeVisible Method
See Also  Send Feedback
Northwoods.GoXam Namespace > DiagramPanel Class : MakeVisible Method

visual
rectangle
The region of the element to bring into view. This value is normally Rect.Empty, meaning as much of the whole visual element as will fit into the viewport.
Scroll the diagram so that a given element (visual) is in the viewport. (Implements IScrollInfo.)

Syntax

Visual Basic (Declaration) 
Public Function MakeVisible( _
   ByVal visual As Visual, _
   ByVal rectangle As Rect _
) As Rect
C# 
public Rect MakeVisible( 
   Visual visual,
   Rect rectangle
)

Parameters

visual
rectangle
The region of the element to bring into view. This value is normally Rect.Empty, meaning as much of the whole visual element as will fit into the viewport.

Return Value

the result of calling DoMakeVisible

Remarks

If the Part is already visible in the viewport, the panel is not scrolled. If you always want to scroll the panel so that a part is centered, even when the part is already visible but not centered in the viewport, call CenterPart(Part,Action).

Requirements

See Also

© 2012 All Rights Reserved.