Change Textnote Type

What I can see is that you try to pass “false” and “true” to probably the value of “Element.SetParameterByName”. This must be a “TextNoteType.ByName”.