以只读模式打开MultilineStringEditor属性 [英] Open a MultilineStringEditor property in read-only mode

查看:199
本文介绍了以只读模式打开MultilineStringEditor属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我有一个属性,其属性设置为MultilineStringEditor。

在PropPane中,我可以看到一个组合框下来箭头,当您单击时,多线编辑器打开,您可以编辑您的文本。



我想要的,在某些情况下打开这个MultilineStringEditor,但是只读模式。因此,用户可以阅读任何长文本(而不是PropPane中的唯一行),但不能更改。

我该怎么做?



谢谢,

   Zoltan

解决方案

你不能让它只在PropertyGrid的MultilineStringEditor中显示一行(在多行中)。


它会在PropertyGrid中的TextBox中显示一行中的整个字符串。


 


祝福, 


Hi there,

I have a property, which attrib is set to MultilineStringEditor.
In the PropPane, I can see a combobox down arrow, when you click, the multiline editor opens, and you can edit your text.

What I want, in some cases open this MultilineStringEditor, but on read-only mode. So user can read any long text (instead of the only line in the PropPane), but cannot change.
How can I do that?

Thanks,
   Zoltan

解决方案

You cannot let it just display one line(in multiline) in the MultilineStringEditor in PropertyGrid.

It will aways display the whole string in one line in that TextBox in PropertyGrid.

 

Best wishes, 


这篇关于以只读模式打开MultilineStringEditor属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆