回复 4楼jimmyking的帖子
我尝试了一下,可通过set_TypeCheckPicture添加图片,模拟出原来的默认突起-----unchecked。
- axfpSpread1.set_TypeCheckPicture(0, Image.FromFile(@"C:\Program Files (x86)\FarPoint Technologies\Spread 8\Samples\Files\focusup.bmp"))
复制代码
截图效果:
实际上,有6种图片可替换的话,可模拟出不同的效果:图片的0~5说明
- Index Value Description
- 0 Specifies picture when check box is cleared (False state)
- 1 Specifies picture when check box is selected (True state)
- 2 Specifies picture when check box is cleared (False state) and pressed
- 3 Specifies picture when check box is selected (True state) and pressed
- 4 Specifies picture when the check box is grayed (Indeterminate state)
- 5 Specifies picture when the check box is grayed (Indeterminate state) and pressed
- If the TypeCheckType property is set to 0 (Two-state), then only the 0, 1, 2, or 3 index value settings are available. If the TypeCheckType property is set to 1 (Three-state), all index value settings are available.
复制代码 |