Table of Contents

Method DefaultDebugDrawForeground

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

DefaultDebugDrawForeground(IListControlItemContainer?, ListBoxItemPaintEventArgs, DrawLabelParams)

Draws debug information for a list control item during the foreground painting phase in debug mode.

[Conditional("DEBUG")]
public static void DefaultDebugDrawForeground(IListControlItemContainer? container, ListBoxItemPaintEventArgs e, Graphics.DrawLabelParams prm)

Parameters

container IListControlItemContainer

The container that holds the list control items. Can be null.

e ListBoxItemPaintEventArgs

The event arguments containing details about the item being painted, including its graphics context and item data.

prm Graphics.DrawLabelParams

The parameters used for drawing the label, including debug-specific settings.

Remarks

This method is only executed in debug builds and is used to render visual debugging aids, such as design corners, on list control items. The debug corners are drawn if DrawDebugCornersOnElements is set to true.