handleParagraphStyle method

bool handleParagraphStyle(
  1. ParagraphStyle style
)

Applies a paragraph style to the current paragraph or selection.

Implementation

bool handleParagraphStyle(ParagraphStyle style) {
  document.saveState(description: 'Apply paragraph style', forceNewAction: true);
  executeHandleParagraphStyle(document, style);
  return true;
}