Example #1
0
 public TextLayoutOptions(AttributedText text, Font defaultFont, double width, TextAlignment alignment)
 {
     Text        = text;
     DefaultFont = defaultFont;
     Width       = width;
     Alignment   = alignment;
 }
Example #2
0
        public TextLayoutOptions(AttributedText attrText, Font defaultFont, double width, TextAlignment alignment)
        {
            Native = new Libui.uiDrawTextLayoutParams()
            {
                String      = attrText,
                DefaultFont = defaultFont.Native,
                Width       = width,
                Align       = alignment
            };

            Text        = attrText;
            DefaultFont = defaultFont;
            Width       = width;
            Alignment   = alignment;
        }