protected virtual IMarkSpan GetLastMarkSpan(IEditable text) { var markSpanType = CreateStartMarkSpan().GetType(); var markSpans = text.GetSpans(0, text.Length(), JClass.FromType(markSpanType)).ToList(); var lastMarkSpan = markSpans.LastOrDefault(); return(lastMarkSpan as IMarkSpan); }
/// <summary> /// 将 <see cref="Type"/> 转换为 <see cref="Java.Lang.Class"/> 对象。 /// </summary> /// <param name="type"></param> /// <returns></returns> public static JClass GetJClass(this Type type) => JClass.FromType(type);