# Override

**URL:** <https://forum.kirupa.com/t/override/326273>\
**Category:** Uncategorized\
**Created:** [December 3, 2011, 5:00pm UTC](https://forum.kirupa.com/t/override/326273 "2011-12-03T17:00:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgmaximus](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@mgmaximus](https://forum.kirupa.com/u/mgmaximus)\
**Post date:** [December 3, 2011, 5:00pm UTC](https://forum.kirupa.com/t/override/326273/1 "2011-12-03T17:00:33Z")

</div>

I’ve written some code that uses setTextFormat to apply formatting to textFields. I need to change it now so if a textfield has a particular title it adds to the formatting (capitalising it).

Theres several workarounds I could use but ideally I would like to either create an override for the setTextFormat or textFormat classes that checks the name of the textfield and if it’s a particular name before applying all the other specified formatting capitalises it. I know how to override a setter such as (width or height) but can’t find any info on overriding a specific property.

Can anyone give me any pointers please?
