Please search the Internet before raising a new question.
You can use the various overloads of TextNote.Create:
https://www.revitapidocs.com/2020/465d02a9-8bc8-8e9f-cc57-642c2626e4d6.htm
Samples demonstrating its usage are available in The Building Coder blog and the Revit SDK samples.
I should have reformulated my question.
I want to create a Label of family Title Blocks which is of type Text Element.
I do not want to create an element of type Text Note.
Maybe this thread is helpful?
Thanks. I already looked up that post.
However, I do not want to create a new System Family Label Type. I want to create a new instance of a Label Type on a Revit sheet.
Do you know how I can do this?