Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
フォント サイズとファミリを調整できる長いテキスト文字列があり、TextBlock のウィンドウに数行テキスト トリムされた場合、文字列が切り取られた場所や IndexOf などを取得するにはどうすればよいですか?
これを言い換えると、2 ページにまたがる記事のように、最初のページの終わりのインデックスを取得して、記事の次の単語が 2 ページ目から始まることを知ることができます。
を繰り返し呼び出すことで、カットオフ ポイントを検索できますGetPositionFromCharIndex。
GetPositionFromCharIndex