Text.set

Set the content to the provided array. Parameter 'copy' specifies whether the given array is likely to change. If not, the array is aliased until such time it is altered via this class. This can be useful when wrapping an array "temporarily" with a stack-based Text.

Also resets the curent selection to null

  1. Text set(T[] chars, bool copy)
    class Text(T)
    final
    set
    (
    T[] chars
    ,
    bool copy
    )
  2. Text set(const(T)[] chars)
  3. Text set(TextViewT other, bool copy)

Meta