您如何在“签名帮助"会话中添加彩色文本? [英] How do you add colored text to Signature Help sessions?
问题描述
我喜欢在我的签名帮助会话中添加彩色文本.我知道可以做到这一点,例如.在C#中,Equals方法的签名帮助给出了文本"bool object.Equals(bool obj)".关键字bool和对象的颜色为蓝色.
I like to add colored text to my signature help sessions. I know this can be done, eg. in C# the signature help for the Equals method gives the text "bool object.Equals(bool obj)" with the keywords bool and object colored blue.
在方法AugmentSignatureHelpSession中,我填充参数IList< ISignature>. 演练:显示签名帮助
In the method AugmentSignatureHelpSession I populate the parameter IList<ISignature> signatures, as described in the Walkthrough: Displaying Signature Help
public void AugmentSignatureHelpSession(ISignatureHelpSession session, IList<ISignature> signatures) {
//code
}
但是,Microsoft.VisualStudio.Language.Intellisense.ISignature仅具有一个名为content的字段和一个名为document的字段,均为字符串类型,而没有.允许我在两个字段中添加布局(颜色)的TextBlock.
However, the Microsoft.VisualStudio.Language.Intellisense.ISignature only has a field called content and a field called documentation both of type string, and not eg. TextBlock that would allow me to add layout (color) the both fields.
我知道该类SignatureHelpPresenterStyle,但我看不到如何将其用于所需的内容.
I'm aware of the class SignatureHelpPresenterStyle but i don't see how to use it for what I want.
[Export(typeof(SignatureHelpPresenterStyle))]
[Name("Intrinsic Signature Help Presenter Style")]
[Order(After = "default")]
[ContentType(IntrinsicsDudePackage.IntrinsicsDudeContentType)]
internal class IntrSignHelpPresenterStyle : SignatureHelpPresenterStyle
{
//No idea how this class could be useful
}
问题:如何在签名帮助"会话中添加彩色文本?
Question: how do you add colored text to Signature Help sessions?
关于HJ!
推荐答案
您好汉克·简·莱宾克 ,
Hi Henk-Jan Lebbink,
从SignatureHelpPresenterStyle文档中,它没有提供有关方法用法的更多信息.
From the document of SignatureHelpPresenterStyle, it doesn't provide more information about the usage of method.
我建议您通过以下链接发布有关该课程的示例请求.
I suggest that you post a sample request about the class via the following link.
http://code.msdn.microsoft.com/windowsapps/site/requests
最诚挚的问候,
王丽
这篇关于您如何在“签名帮助"会话中添加彩色文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!