Method RaisePaintForMatchingChildren
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
controlAbstractControlThe parent control whose child controls will be evaluated. Can be null.
dcFunc<Graphics>A function that provides a Graphics object for painting.
predicatePredicate<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.