Table of Contents

Method RaisePaintForMatchingChildren

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

RaisePaintForMatchingChildren(AbstractControl?, Func<Graphics>, Predicate<AbstractControl>)

Raises the paint event for child controls of the specified control that match the given predicate.

public static void RaisePaintForMatchingChildren(AbstractControl? control, Func<Graphics> dc, Predicate<AbstractControl> predicate)

Parameters

control AbstractControl

The parent control whose child controls will be evaluated. Can be null.

dc Func<Graphics>

A function that provides a Graphics object for painting.

predicate Predicate<AbstractControl>

A predicate used to determine which child controls should have their paint event raised.

Remarks

This method iterates through the child controls of the specified control and raises the paint event for those that are visible, intersect with the parent's client rectangle, and satisfy the predicate. If control is null or has no children, the method does nothing.