code: private static Style.TextAnchor  parseTextAnchor(String val)
     {
        switch (val)
        {
           case "start":  return Style.TextAnchor.Start;
           case "middle": return Style.TextAnchor.Middle;
           case "end":    return Style.TextAnchor.End;
           default:       return null;
        }
     }
docs: Parse a text anchor keyword