public void SetFont(Font font) { if (widget is WLBubbleText) { WLBubbleText bubbleTextWidget = (WLBubbleText)widget; bubbleTextWidget.SetFont(font); } }