Stetic.Grid.ForAll C# (CSharp) Method

ForAll() protected method

protected ForAll ( bool include_internals, Gtk callback ) : void
include_internals bool
callback Gtk
return void
        protected override void ForAll(bool include_internals, Gtk.Callback callback)
        {
            if (!include_internals)
                return;

            foreach (object obj in lines) {
                if (obj is Widget)
                    callback ((Widget)obj);
                else if (obj is Pair) {
                    Pair p = (Pair)obj;
                    callback (p.Label);
                    callback (p.Editor);
                }
            }
        }