Table of Contents

Method GetRightSideElements

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

GetRightSideElements(ref DrawLabelParams)

Generates an array of drawing parameters for the right-side elements of a label.

protected virtual Graphics.DrawElementParams[]? GetRightSideElements(ref Graphics.DrawLabelParams prm)

Parameters

prm Graphics.DrawLabelParams

A reference to the Graphics.DrawLabelParams structure that provides the context for drawing the label, including layout and style information.

Returns

DrawElementParams[]

An array of Graphics.DrawElementParams representing the right-side elements to be drawn, or null if no right-side elements are available.

Remarks

This method determines the right-side elements based on the result of GetRightSideElement. If the right-side element is a string, it creates a text element. If it is an image, it creates an image element. A spacer element is also included to ensure proper alignment. The elements are aligned to the right horizontally.