Method AddInput
AddInput<T>(object, IValueSource<object>?, CustomEventArgs?)
Adds item with the editor for the value of the specified type. Value is specified using IValueSource<T>.
public virtual PanelSettingsItem AddInput<T>(object label, IValueSource<object>? valueSource = null, CustomEventArgs? e = null)
Parameters
labelobjectText which will be shown next to the editor.
valueSourceIValueSource<object>Source of the value. If Null an internal value container is used.
eCustomEventArgsAdditional arguments.
Returns
Type Parameters
TType of the value.
AddInput<T>(object, Func<T>, Action<T>, CustomEventArgs?)
Adds item with the editor for the value of the specified type. Value is specified using getter and setter delegates.
public virtual PanelSettingsItem AddInput<T>(object label, Func<T> getValue, Action<T> setValue, CustomEventArgs? e = null)
Parameters
labelobjectText which will be shown next to the editor.
getValueFunc<T>setValueAction<T>eCustomEventArgsAdditional arguments.
Returns
Type Parameters
TType of the value.
AddInput(object, object, string, CustomEventArgs?)
Adds item with the editor for the property of the specified object. Value is specified using property name and property container.
public virtual PanelSettingsItem AddInput(object label, object propContainer, string propName, CustomEventArgs? e = null)
Parameters
labelobjectText which will be shown next to the editor.
propContainerobjectObject which contains the property.
propNamestringProperty name.
eCustomEventArgsAdditional arguments.