[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static Rect GetBoundingBox(
this FrameworkElement element
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function GetBoundingBox (
element As FrameworkElement
) As Rect
Dim element As FrameworkElement
Dim returnValue As Rect
returnValue = element.GetBoundingBox()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static Rect GetBoundingBox(
FrameworkElement^ element
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member GetBoundingBox :
element : FrameworkElement -> Rect
No code example is currently available or this language may not be supported.
[Missing <param name="element"/> documentation for "M:DevCase.Extensions.FrameworkElementExtensions.FrameworkElementExtensions.GetBoundingBox(System.Windows.FrameworkElement)"]
[Missing <returns> documentation for "M:DevCase.Extensions.FrameworkElementExtensions.FrameworkElementExtensions.GetBoundingBox(System.Windows.FrameworkElement)"]
No code example is currently available or this language may not be supported.
Dim element As FrameworkElement = DirectCast(Me.FindName("Button1"), FrameworkElement)
Dim rc As Rect = GetBoundingBox(element)
Console.WriteLine($"Size: {{Width:{rc.Size.Width}, Height:{rc.Size.Height}}}; Location: {{X:{rc.Location.X}, Y:{rc.Location.Y}}}")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.