Show / Hide Table of Contents

Class LayoutInformation

Defines methods that provide additional information about the layout of an element.

Inheritance
System.Object
LayoutInformation
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls.Primitives
Assembly: OpenSilver.dll
Syntax
public static class LayoutInformation

Methods

| Improve this Doc View Source

GetLayoutClip(FrameworkElement)

Returns the visible region of the specified element.

Declaration
public static Geometry GetLayoutClip(FrameworkElement element)
Parameters
Type Name Description
FrameworkElement element

The element whose layout clip geometry is desired.

Returns
Type Description
Geometry

The visible region of the clipped element, or null if the element was not clipped during layout.

Exceptions
Type Condition
System.ArgumentNullException

element is null.

| Improve this Doc View Source

GetLayoutExceptionElement(Dispatcher)

Returns the element that was being processed by the layout system at the moment of an unhandled exception.

Declaration
public static UIElement GetLayoutExceptionElement(Dispatcher dispatcher)
Parameters
Type Name Description
Dispatcher dispatcher

The Dispatcher object that defines the scope of the operation. There is one dispatcher per layout engine instance.

Returns
Type Description
UIElement

The element being processed at the time of an unhandled exception.

| Improve this Doc View Source

GetLayoutSlot(FrameworkElement)

Returns the layout slot, or bounding box, that contains the specified element.

Declaration
public static Rect GetLayoutSlot(FrameworkElement element)
Parameters
Type Name Description
FrameworkElement element

The element whose layout slot is desired.

Returns
Type Description
Rect

The area assigned to the element for layout.

Exceptions
Type Condition
System.ArgumentNullException

element is null.

  • Improve this Doc
  • View Source