Share via


PictureExtensions.GetBounds(IPicture) Method

Definition

Gets the bounds of a picture as a rectangle.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Graphics::RectF GetBounds(Microsoft::Maui::Graphics::IPicture ^ target);
public static Microsoft.Maui.Graphics.RectF GetBounds(this Microsoft.Maui.Graphics.IPicture target);
static member GetBounds : Microsoft.Maui.Graphics.IPicture -> Microsoft.Maui.Graphics.RectF
<Extension()>
Public Function GetBounds (target As IPicture) As RectF

Parameters

target
IPicture

The picture to get the bounds of.

Returns

A RectF representing the position and size of the picture, or default if the picture is null.

Applies to