PropertyGrid.EditSession.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
        public void Dispose()
        {
            currentEditor.Dispose ();
        }

Usage Example

        protected override void OnParentSet(Gtk.Widget parent)
        {
            base.OnParentSet(parent);

            if (Parent != null)
            {
                if (this.ParentWindow != null)
                {
                    box.ParentWindow = this.ParentWindow;
                }
                box.Parent = Parent;
                box.Show();
                ((InternalTree)Parent).Editing = true;
            }
            else
            {
                session.Dispose();
                ((InternalTree)parent).Editing = false;
                if (box.Parent != null && box.Parent.IsRealized)
                {
                    box.Unparent();
                }
            }
        }