public static bool IsListMarkerStyleNumbered(this TextSelection Selection) { var ms = Selection.GetListMarkerStyle(); if (ms == null) { return(false); } else if (ms.Value == TextMarkerStyle.Decimal) { return(true); } else { return(false); } }