Skip to content

StringEnumField<TStringEnum> constructor

Initializes a new instance of the StringEnumField class.

public StringEnumField(ICollection<Field> collection, string name, LocalText? caption = null, 
    int size = 0, FieldFlags flags = FieldFlags.Default, Func<IRow, string?>? getValue = null, 
    Action<IRow, string?>? setValue = null)
parameter description
collection The collection.
name The name.
caption The caption.
size The size.
flags The flags.
getValue The get value.
setValue The set value.

Exceptions

exception condition
InvalidProgramException TStringEnum is not a StringEnum type.

See Also