ComponentFactory.Krypton.Toolkit.ViewComposite.EvalTransparentPaint C# (CSharp) Method

EvalTransparentPaint() public method

Evaluate the need for drawing transparent areas.
public EvalTransparentPaint ( ViewContext context ) : bool
context ViewContext Evaluation context.
return bool
        public override bool EvalTransparentPaint(ViewContext context)
        {
            Debug.Assert(context != null);

            // Check each child in turn for transparent areas
            foreach (ViewBase child in this)
            {
                // Only investigate visible children
                if (child.Visible)
                {
                    // Any child that returns 'true' completes the process
                    if (child.EvalTransparentPaint(context))
                        return true;
                }
            }

            // Nothing found
            return false;
        }