示例#1
0
        public static TextBlock PrepareTextBlock(IWcR2Font font, string text, ref Vector2 pos, Color color)
        {
            Vector2 size = font.MeasureString(text);

            TextBlock block = new TextBlock();

            block.Font      = font;
            block.Text      = text;
            block.Position  = pos;
            block.ForeColor = color;

            pos.X += size.X;
            return(block);
        }