将用户输入转换为 Workflow 4.0 中 FlowDocument 内的 ToString() 方法

发布于 2024-09-05 07:46:54 字数 227 浏览 1 评论 0原文

我有一个生成电子邮件的 Workflow 4.0 应用程序。在创建电子邮件正文的对话框中,用户需要能够输入一些表示要在运行时作为字符串插入的现有 wf 实例变量的字符串值。

因此,他们输入类似以下内容:电子邮件正文,包括 <>。

(假设 ExistingVariable 是一个 int 或类似的东西)

关于如何在运行时使用 ToString() 转换此文本有任何有用的提示吗?

I have a Workflow 4.0 app that generates emails. In a dialog for creating the email body the user needs to be able to input some string value representing an existing wf instance variable to be inserted as a string at runtime.

So they input something like: Email body text including <>.

(say ExistingVariable is an int or something like that)

Any helpful hints for how to convert this text with a ToString() at runtime?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

自控 2024-09-12 07:46:54

我发现使用反射是解决这个问题的方法。我能够从 PropertyDescriptorCollection 中获取所需的值,其余的相对简单。

I found that using reflection was the way to go with this. I was able to grab the values I needed from a PropertyDescriptorCollection and the rest was relatively simple.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文