Пример #1
0
 internal TextCache(TextBoxView owner)
 {
     _lineProperties = owner.GetLineProperties();
     _textRunCache = new TextRunCache();
     Control hostControl = (Control)owner.Host;
     TextFormattingMode textFormattingMode = TextOptions.GetTextFormattingMode(hostControl);
     _textFormatter = System.Windows.Media.TextFormatting.TextFormatter.FromCurrentDispatcher(textFormattingMode);
 }