Exemplo n.º 1
0
        private void ScrollToMember()
        {
            Position position = SourceCode.GetMemberPosition();

            if (position != Position.Empty)
            {
                Selection selection = Selection.Create(this.TextArea, position.Start, position.End);

                this.Select(position.Start, position.Length);

                DispatcherObjectExt.BeginInvoke(() => this.ScrollTo(selection.StartPosition.Line, selection.EndPosition.Column));
            }
        }