void SelectSegment(Mono.TextTemplating.ISegment seg) { int s = Editor.LocationToOffset(seg.TagStartLocation.Line, seg.TagStartLocation.Column); if (s > -1) { Editor.CaretOffset = s; Editor.CenterTo(s); } }
void SelectSegment(Mono.TextTemplating.ISegment seg) { int s = Editor.GetPositionFromLineColumn(seg.TagStartLocation.Line, seg.TagStartLocation.Column); if (s > -1) { Editor.CursorPosition = s; Editor.ShowPosition(s); } }