# Change TextFormat

**URL:** <https://forum.kirupa.com/t/change-textformat/213271>\
**Category:** Uncategorized\
**Created:** [January 18, 2007, 7:43am UTC](https://forum.kirupa.com/t/change-textformat/213271 "2007-01-18T07:43:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasvarghese](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jasvarghese](https://forum.kirupa.com/u/jasvarghese)\
**Post date:** [January 18, 2007, 7:43am UTC](https://forum.kirupa.com/t/change-textformat/213271/1 "2007-01-18T07:43:02Z")

</div>

Hai all…

I have specified a text format to a particular text field.  
and after some time i need to change the same text into another format…

is there any way to do???  
i diid in the normal way…but was not working.  
the code is like…

```auto

 
myDefaultHDecor = new TextFormat();
      myDefaultHDecor.underline = true;
      myDefaultHDecor.bold = true;
      myDefaultHDecor.color = "0x000000";
      myDefaultHDecor.font = "arial";
      myDefaultHDecor.size = 15;
txtBulletin.setNewTextFormat(myDefaultHDecor);
 

```
