semiHidden property

Style.semiHidden property

Gets/sets whether the style hides from the Styles gallery and from the Styles task pane.

get semiHidden(): boolean

Examples

Shows how to prioritize and hide a style.

let doc = new aw.Document();
let styleTitle = doc.styles.at(aw.StyleIdentifier.Subtitle);

if (styleTitle.priority == 9)
  styleTitle.priority = 10;

if (!styleTitle.unhideWhenUsed)
  styleTitle.unhideWhenUsed = true;

if (styleTitle.semiHidden)
  styleTitle.semiHidden = true;

doc.save(base.artifactsDir + "Styles.StylePriority.docx");

See Also