Highlighter
![](https://tiantai.live/wp-content/uploads/2022/03/540c2052fe58575c4709639daa83cd31_em20.gif)
高亮控件的边框,一般为输入性的控件如TextBoxX,ComboxEx,IpAddressInput等
效果:
![](https://tiantai.live/wp-content/uploads/2022/03/540c2052fe58575c4709639daa83cd31_em20.gif)
此控件不需要写任何代码
![](https://tiantai.live/wp-content/uploads/2022/03/540c2052fe58575c4709639daa83cd31_em17.gif)
拖入窗体后,设置属性ContainerControl,则此控件的子控件,只要能够高亮的控件都可以高亮
![](https://tiantai.live/wp-content/uploads/2022/03/540c2052fe58575c4709639daa83cd31_em17.gif)
范围内的可高亮控件都会增加2个属性:如图:
![](https://tiantai.live/wp-content/uploads/2022/03/540c2052fe58575c4709639daa83cd31_em19.gif)
如果要指定控件直接显示一个高亮的框,则设定第一个HighlightColor属性即可,否则设为None
![](https://tiantai.live/wp-content/uploads/2022/03/540c2052fe58575c4709639daa83cd31_em19.gif)
如果需要指定控件只有获得输入焦点后才会高度,则第一个属性设置为None,第二个HighlightOnFocus设置为True,在获得焦点后显示的高亮颜色由highlighter控件上的FocusHighlightColor颜色指定