Hi blanca,
Thanks for using Syncfusion Products.
We glad to inform that we have created a simple sample to achieve your requirements and the same can be downloaded from the below link.
TextNode_SizeToText-1939032094.zipKindly try the above sample and let me know if we have misunderstood your requirements.
Please let me know if you have any concerns.
Regards,
Bala Murugan A.S