Table of Contents

Method CreateMenuItemTrackPaintingTime

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

CreateMenuItemTrackPaintingTime(UserControl, int)

Creates a menu item that tracks the painting time for all modes of the specified control.

public static MenuItem CreateMenuItemTrackPaintingTime(UserControl control, int repeatCount = 250)

Parameters

control UserControl

The UserControl for which painting time will be tracked.

repeatCount int

The number of times the painting operation should be repeated for tracking purposes. Must be a positive integer.

Returns

MenuItem

A MenuItem that, when executed, tracks the painting time and displays the results in the Output panel.

Remarks

After tracking the painting time, the control's overlays are cleared, and a tooltip is displayed to indicate that the operation is complete.