Table of Contents

Interface IValue

Namespace
Terminal.Gui.ViewBase
Assembly
Terminal.Gui.dll

Non-generic interface for accessing a View's value as a boxed object.

public interface IValue

Remarks

This interface enables command propagation to carry values without knowing the generic type. When a command is invoked, the source View's value can be captured via GetValue() and stored in CommandContext.Value for handlers up the hierarchy.

Views should implement IValue<TValue> rather than this interface directly. The generic interface provides a default implementation of GetValue().

Methods

GetValue()

Gets the value as a boxed object.

See Also

IValue<TValue>