IScrollInfo::MakeVisible Method (Visual^, Rect)

 

Forces content to scroll until the coordinate space of a Visual object is visible.

Namespace:   System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

Rect MakeVisible(
	Visual^ visual,
	Rect rectangle
)

Parameters

visual
Type: System.Windows.Media::Visual^

A Visual that becomes visible.

rectangle
Type: System.Windows::Rect

A bounding rectangle that identifies the coordinate space to make visible.

Return Value

Type: System.Windows::Rect

A Rect that is visible.

In most cases, the returned rectangle is a transformed version of the input rectangle. In some cases, such as when the input rectangle cannot fit entirely within the viewport, the return value may be smaller.

.NET Framework
Available since 3.0
Return to top
Show: