gpt4 book ai didi

c# - 从 FlowDocument 对象获取路径几何

转载 作者:太空宇宙 更新时间:2023-11-03 11:56:45 24 4
gpt4 key购买 nike

有人能告诉我如何从 WPF FlowDocument 对象获取路径几何图形吗?请注意,我不想使用FormattedText。谢谢。

最佳答案

FlowDocument 可以通过多种方式查看,但 Path 是固定形状。我想也许您真的想要一些简化的、仅可视化的 FlowDocument 内容。

在这种情况下,您可以尝试将 FlowDocument 转换为 XPS FixedDocument - FixedPage 具有 Canvas包含一堆 PathGlyph 的 es。

关于c# - 从 FlowDocument 对象获取路径几何,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65687/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com