src/Misc/EFTools/DesignXmlCore/Base/Shell/TreeGridDesignerColumnDescriptor.cs
/// <summary>
///     Returns the in-place editor for the given component.  May be either a type,
///     which will be instantiated, or an instance.  Must implement
///     IVirtualTreeInPlaceControl.  Base implementation checks to see if a TypeEditorHost (drop-down)
///     can be created via TreeGridDesignerTreeControl.CreateTypeEditorHost, otherwise, returns a
///     text box as the default edit control.
/// </summary>
Returns the in-place editor for the given component.  May be either a type,
which will be instantiated, or an instance.
Returns the in - place editor for the given component . May be either a type which will be instantiated or an instance .
[SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")]
        [SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference")]
        internal virtual object GetInPlaceEdit(object component, ref string alternateText)
        {
            var dropDown = TreeGridDesignerTreeControl.CreateTypeEditorHost(this, component);
            if (dropDown != null)
            {
                dropDown.DismissLabelEditOnDropDownClose = true;
                return dropDown;
            }
            return typeof(TreeGridDesignerInPlaceEdit);
        }
[ SuppressMessage ( " " , " " ) ] [ SuppressMessage ( " " , " " ) ] internal virtual object GetInPlaceEdit ( object component , ref string alternateText ) { var dropDown = TreeGridDesignerTreeControl . CreateTypeEditorHost ( this , component ) ; if ( dropDown != null ) { dropDown . DismissLabelEditOnDropDownClose = true ; return dropDown ; } return typeof ( TreeGridDesignerInPlaceEdit ) ; }
Returns the in-place editor for the given component.
Returns the in - place editor for the given component .
// perhaps we can get a custom editor via a UITypeEditor or TypeConverter // set flag to dismiss the label edit when the drop down closes. // default editor type (text box)
component
object
string
ref