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
label
objectText which will be shown next to the editor.
valueSource
IValueSource<object>Source of the value. If Null an internal value container is used.
e
CustomEventArgsAdditional arguments.
Returns
Type Parameters
T
Type 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
label
objectText which will be shown next to the editor.
getValue
Func<T>setValue
Action<T>e
CustomEventArgsAdditional arguments.
Returns
Type Parameters
T
Type 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
label
objectText which will be shown next to the editor.
propContainer
objectObject which contains the property.
propName
stringProperty name.
e
CustomEventArgsAdditional arguments.