[CONNECT C++] Loop TextFields in existing text element and then get field properties and set field Properties?

Could anyone offer any help with how to do this? I see a TextFieldDictionary in the API. but not really sure how to implement this.

what im trying to do is for a given text element get all the text fields that are linked to a property of a item type. as well as change what property that field is linked to.

I used the code from Yongan.Fu in post https://communities.bentley.com/communities/other_communities/chinafirst/f/microstation-projectwise/180135/msce-c-textblock to create a text field but that's pretty much the only example of textfields I could find.

JD