Table of Contents

Method TrySetValueFromString

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

TrySetValueFromString(string)

Attempts to set Value by parsing the supplied string.

public bool TrySetValueFromString(string input)

Parameters

input string

The string representation of the value to set.

Returns

bool

true if input was successfully parsed and assigned; false if the value type cannot be parsed from a string or parsing failed.

Remarks

The default implementation supports:

Views may override this method to provide custom parsing logic.