using MatterHackers.Agg.UI; TextWidget textWidget = new TextWidget("Hello, world!"); textWidget.Position = new Point(10, 10);
using MatterHackers.Agg.UI; using MatterHackers.Agg.Font; TextWidget textWidget = new TextWidget("Hello, world!"); textWidget.Font = new Font("Arial", 18); textWidget.TextColor = Color.Red;These examples use the MatterHackers.Agg.UI package library to create TextWidgets that display text on the screen. They demonstrate how to set string values, position, font and text color for TextWidget.