// This sets the cursor to the beggining on the next Tag public static void authentic_GotoNextTag(AxXMLSPYPLUGINLib.AxAuthentic axTargetAuthenticObject) { if(axTargetAuthenticObject.AuthenticView.Selection.SelectNext(XMLSPYPLUGINLib.SPYAuthenticElementKind.spyAuthenticTag) != null) { axTargetAuthenticObject.AuthenticView.Selection.SelectNext(XMLSPYPLUGINLib.SPYAuthenticElementKind.spyAuthenticTag).Select(); } axTargetAuthenticObject.SelectionSet(axTargetAuthenticObject.CurrentSelection.Start,0,null,0); }
// This sets the cursor to the beggining on the previous Tag public static void authentic_GotoPreviousTag(AxXMLSPYPLUGINLib.AxAuthentic axTargetAuthenticObject) { try { axTargetAuthenticObject.AuthenticView.Selection.SelectPrevious(XMLSPYPLUGINLib.SPYAuthenticElementKind.spyAuthenticTag).Select(); axTargetAuthenticObject.SelectionSet(axTargetAuthenticObject.CurrentSelection.Start, 0, null, 0); } catch { } }
public static void authentic_InsertNewLine(AxXMLSPYPLUGINLib.AxAuthentic axTargetAuthenticObject) { authentic_InsertElementInCurrentSelectionPos(axTargetAuthenticObject, "newline"); axTargetAuthenticObject.SelectionSet(axTargetAuthenticObject.CurrentSelection.Start, 0, null, 0); }