Method DefaultDebugDrawForeground
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
containerIListControlItemContainerThe container that holds the list control items. Can be null.
eListBoxItemPaintEventArgsThe event arguments containing details about the item being painted, including its graphics context and item data.
prmGraphics.DrawLabelParamsThe 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.