Ejemplo n.º 1
0
 private Java.Lang.ICharSequence GetTextFormatted()
 {
     if (Text == string.Empty)
     {
         return(EmptyString);
     }
     else if (UseInlinesFastPath)
     {
         return(new Java.Lang.String(Text));
     }
     else
     {
         var textFormatted = new UnoSpannableString(Text);
         return(textFormatted);
     }
 }
Ejemplo n.º 2
0
 private Java.Lang.ICharSequence GetTextFormatted()
 {
     if (Text == string.Empty)
     {
         return(EmptyString);
     }
     else if (UseInlinesFastPath)
     {
         return(new Java.Lang.String(Text));
     }
     else
     {
         var textFormatted = new UnoSpannableString(Text);
         foreach (var inline in GetEffectiveInlines())
         {
             textFormatted.SetPaintSpan(inline.inline.GetPaint(), inline.start, inline.end);
         }
         return(textFormatted);
     }
 }