Table of Contents

Method GetItemImageRect

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetItemImageRect(RectD, SizeD?)

Gets suggested rectangles of the item's image and text.

public virtual (RectD ImageRect, RectD TextRect) GetItemImageRect(RectD rect, SizeD? imageSize = null)

Parameters

rect RectD

Item rectangle.

imageSize SizeD?

Image size. Optional. If not specified, calculated using height of the item.

Returns

(RectD ImageRect, RectD TextRect)