Arbortext Command Language > Functions by Alphabetical Listing > in_context_list
  
in_context_list
in_context_list (arr[, ct[, oid[, pos[, filter[, alias]]]]])
 
This function fills the array arr with a list of element names that are valid for insert_tag (or change_tag if ct is 1) at the point given by oid, pos. If oid is omitted, the cursor position in the current document is used. in_context_list returns the number of elements stored in an array.
If the optional parameter filter is given and non-zero, the exclude_tag callback is called to remove undesired entries from the context list. To skip the exclude_tag callback, either omit the filter parameter or set it to zero.
If the optional parameter alias is passed the value 1, in_context_list returns the alias names instead of the actual names of the elements allowed in the current context. By default, alias is 0.
Related Topics
The doc_add_callback functionexclude_tag callback