label

Add a label to an existing relation.

The meaning of LabelPos. A "Left" -- "Right" B : "OnRelation"

  1. auto label(Relation m, string txt, LabelPos pos)
    @safe
    label
    (
    Relation m
    ,
    string txt
    ,)
  2. auto label(Relation m, string txt)

Examples

auto m = new PlantumlModule;
auto c0 = m.class_("A");
auto c1 = m.class_("B");
auto r0 = m.relate(c0.name, c1.name, Relate.Compose);
r0.label("foo", LabelPos.Right);

Meta