| C1.Xaml.RichTextBox アセンブリ > C1.Xaml.RichTextBox.Documents 名前空間 > C1TextPointer クラス > GetPositionAtOffset メソッド : GetPositionAtOffset(Int32,Predicate<Tag>) メソッド |
'宣言 Public Overloads Function GetPositionAtOffset( _ ByVal offset As System.Integer, _ ByVal tagFilter As System.Predicate(Of Tag) _ ) As C1TextPointer
public C1TextPointer GetPositionAtOffset( System.int offset, System.Predicate<Tag> tagFilter )
このメソッドは、C1Document ツリーを直線的に走査するために使用されます。
各 C1TextElement の開始タグと終了タグは、項目としてカウントされます。たとえば、位置が子を含む要素にある場合、オフセット1の位置は、この C1TextPointer が置かれている C1TextElement の C1TextElement.ContentStart になります。
この C1TextPointer が C1Run 内に置かれている場合は、C1Run のテキストを走査します。
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2