示例#1
0
        public TextView(ICaretViewReadonly caretViewReader)
        {
            updatingAlgorithm    = new TextUpdatingAlgorithm();
            removingAlgorithm    = new TextRemovingAlgorithm();
            collapsingAlgorithm  = new TextCollapsingAlgorithm();
            parsingAlgorithm     = new TextParsingAlgorithm();
            this.caretViewReader = caretViewReader;

            visuals.Add(new SingleVisualTextLine(new SimpleTextSource(string.Empty, TextConfiguration.GetGlobalTextRunProperties()), 0));
        }
 public void InitializeTest()
 {
     tc = new TextCollapsingAlgorithm();
     ra = CollapseRepresentationAlgorithmFactory.GetAlgorithm(FormattingType.BRACKETS);
 }