private static EditorPoints GetEditorPoints(Tuple <XamlNode, XamlNode> firstAndLast) { EditorPoints ep = EditorPoints.GetEditorPoints(firstAndLast.Item1.TopPoint + 1, firstAndLast.Item2.BottomPoint + 1, _documentText); return(ep); }
public EditorPoints GetContentEndPoints() { int top = this.StartTag.BottomPoint + 1; int bottom = this.EndTag.TopPoint; string content = this.DocumentText.Substring(top, bottom - top); Match match = Regex.Match(content, @"\A\s*", RegexOptions.Singleline); if (match.Success) { top = top + match.Length; } content = content.Trim(); bottom = top + content.Length; return(EditorPoints.GetEditorPoints(top + 1, bottom + 1, this.DocumentText)); }