GetLayoutClip Method
Collapse the table of content
Expand the table of content

LayoutInformation.GetLayoutClip Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns the visible region of the specified element.

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

'Declaration
Public Shared Function GetLayoutClip ( _
	element As FrameworkElement _
) As Geometry

Parameters

element
Type: System.Windows.FrameworkElement
The element whose layout clip geometry is desired.

Return Value

Type: System.Windows.Media.Geometry
The visible region of the clipped element, or Nothing if the element was not clipped during layout.

ExceptionCondition
ArgumentNullException

element is Nothing.

The following image shows the dimensions of a parent panel, its child element, the child's layout slot, and the layout clip that contains the child.

Layout Clip

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft