ValueEntry

References
public sealed class ValueEntry
A single entry in an edit data form.

Properties

Assistant

#
public ITypeAssistant Assistant { get; }
Gets the type assistant for this entry. Path entries do not have an assistant.

HasDragArea

#
public bool HasDragArea { get; }
Gets whether this entry has a dragging area.

HasEditArea

#
public bool HasEditArea { get; }
Gets whether this entry has a textbox for directly editing the value.

HasPickArea

#
public bool HasPickArea { get; }
Gets whether this entry has a button for specifying a new value.

Kind

#
public ValueEntryKind Kind { get; }
Gets the kind of entry.

Pear

#
public IPear Pear { get; }
Gets the value stored in this entry. This will be null if this is a MAKE entry, and it'll be a Pear<Path> if this is a PATH entry.

Text

#
public string Text { get; }
Gets the text which represents the current value.

Methods

Create

#
public static ValueEntry Create(IPear value, ITypeAssistant assistant)
Create a new EDIT entry.
value (IPear)
assistant (ITypeAssistant)

Create

#
public static ValueEntry Create(ITypeAssistant assistant)
Create a new MAKE entry.
assistant (ITypeAssistant)

Create

#
public static ValueEntry Create(Path path)
Create a new PATH entry.
path (Path)