范围与领域 [英] Ranges with Fields

查看:109
本文介绍了范围与领域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

   有人可以解释当Range包含一个或多个字段时如何确定Range.End?  范围的文本是字段代码或显示的文本,具体取决于View.ShowFieldCodes值。  但是,End属性
不是Start属性Value + Range.Text.Length(就像它在Range中没有字段时)。  我以为我通过包含start char,fieldCode值,separator char,text value,end char来计算它。  然而,有时这是
有效,有时候它是由一个角色(例如当我插入超链接时)在手动计算我认为End位置应该是什么时。  所以,我只想了解如何计算该范围内具有一个或多个
字段的范围的结束位置。  感谢任何帮助。

    Could someone explain how the Range.End is determined when a Range contains one or more fields?  The text of the range is either the fieldcode or the displayed text depending on the View.ShowFieldCodes value.  However, the End property is not the Start property Value + Range.Text.Length (like it is when there is no field in the Range).  I thought I figured it out by including the start char, fieldCode value, separator char, text value, end char.  However, sometimes this is valid and other times it's off by a character (when I insert a hyperlink, for example) when manually calculating what I think the End position should be.  So, I just would like to understand how the End position is calculated for a Range with one or more Fields in that Range.  Any help is appreciated.

Brad

推荐答案

嗨布拉德,

感谢您在MSDN论坛上发帖。

 

我正在尝试让一些高级工程师参与这个问题,这需要一些时间。非常感谢您的耐心。

 

很抱歉给您带来不便,祝您有愉快的一天!

Thank you for posting in the MSDN Forum.
 
I'm trying to involve some senior engineers into this issue and it will take some time. Your patience will be greatly appreciated.
 
Sorry for any inconvenience and have a nice day!

关心& Fei

Regards & Fei


这篇关于范围与领域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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