Exemplo n.º 1
0
        public void UpdateText(string value = null)
        {
            if (!String.IsNullOrEmpty(value))
            {
                _rawText     = value;
                ContainsHtml = (!String.IsNullOrEmpty(value) && Common.MatchHtmlTags.IsMatch(value));
            }
            else
            {
                return;
            }

            var style = _instance.GetStyle(StyleID);

            TextValue = TextStyle.ParseString(style, _rawText);

            AttributedValue = ContainsHtml ? _instance.CreateHtmlString(TextValue, StyleID, CustomTags) : _instance.CreateStyledString(style, TextValue);
        }