# vtkTextWidget

**URL:** https://discourse.vtk.org/t/vtktextwidget/6394
**Category:** Support
**Created:** [August 17, 2021, 2:03am UTC](https://discourse.vtk.org/t/vtktextwidget/6394 "2021-08-17T02:03:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Erikevin](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/e/8e7dd6/32.png) [@Erikevin](https://discourse.vtk.org/u/Erikevin)
#### Post date: [August 17, 2021, 2:03am UTC](https://discourse.vtk.org/t/vtktextwidget/6394/1 "2021-08-17T02:03:42Z")

</div>

Hi masters，  
I want to realize these effects below:  
1. set border line color and style for vtkTextWidget;  
2. set background color for vtkTextWidget;  
for No.2 item,i’ve tried calling vtkActorText\*-\>GetTextProperty()-\>SetBackgroundColor(xx,xx,xx),but it  
doesn’t take effect. Since i’m new for vtk, could you teach me with patience. Much thanks~
