Class LayoutInformation
Defines methods that provide additional information about the layout of an element.
Inheritance
Inherited Members
Namespace: System.Windows.Controls.Primitives
Assembly: OpenSilver.dll
Syntax
public static class LayoutInformation
Methods
| Improve this Doc View SourceGetLayoutClip(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. |
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. |
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. |