/// <summary> /// Searches the document for the marker handle and returns the line number containing the marker if found. /// </summary> /// <param name="markerHandle">The <see cref="MarkerHandle" /> created by a previous call to <see cref="Line.MarkerAdd" /> of the marker to search for.</param> /// <returns>If found, the zero-based line index containing the marker; otherwise, -1.</returns> public int MarkerLineFromHandle(MarkerHandle markerHandle) { return DirectMessage(NativeMethods.SCI_MARKERLINEFROMHANDLE, markerHandle.Value).ToInt32(); }
/// <summary> /// Searches the document for the marker handle and deletes the marker if found. /// </summary> /// <param name="markerHandle">The <see cref="MarkerHandle" /> created by a previous call to <see cref="Line.MarkerAdd" /> of the marker to delete.</param> public void MarkerDeleteHandle(MarkerHandle markerHandle) { DirectMessage(NativeMethods.SCI_MARKERDELETEHANDLE, markerHandle.Value); }