Arbortext Command Language > Functions by Alphabetical Listing > text_style_tag_name
  
text_style_tag_name
tagname = text_style_tag_name(style, arr[, doc])
This function returns the name of the primary element for the given style specified in the document type configuration file (.dcf) for the document type associated with doc. Valid style values are bold, italic, and underline.
If a tag name is returned, text_style_tag_name function returns arr with an attribute name and attribute value, if they were specified for the tag in the .dcf file.
The function returns the null string if there is no element defined for the specified style, or if doc is invalid or an ASCII file. If doc is omitted or 0, the current document is used.
For example,
local tag, arr[];
local attr, val;
tag = text_style_tag_name("bold", arr);
attr = arr['attribute'];
val = arr['attribute_value'];
Related Topics
Document type configuration files
Configuring tags as text style elements
text_style_tag_name_ns function
set toolbar4 command