Пример #1
0
        private void CreateCaretIndicatorAdornment()
        {
            var layer = TextView.GetAfterCaretAdornmentLayer();
            var id    = DefaultWpfViewOptions.EnableHighlightCurrentLineId;

            if (Values.IsEnabledLineIndicator)
            {
                TextView.Options.SetOptionValue(id, false);
                LineIndicator = new LineIndicatorAdornment(TextView, layer, Resources.LineIndicatorPen);
                LineIndicator.OnInitialized();
            }
            else
            {
                TextView.Options.SetOptionValue(id, TextView.Options.Parent.GetOptionValue(id));
            }

            if (Values.IsEnabledColumnIndicator)
            {
                ColumnIndicator = new ColumnIndicatorAdornment(TextView, layer, Resources.ColumnIndicatorPen);
                ColumnIndicator.OnInitialized();
            }
        }