IsSelectedBlockType

Compares the provided block type to the type of the currently selected block. This action uses the document block layout that is created by the DocumentAnalytics actions.

Important: This action is currently released as a preview. If you use this action in your application, you might need to make updates to your application if a new version of this action released.

Syntax

bool IsSelectedBlockType (string StrParam) 

Parameters

string StrParam
Type
The name of the expected block type. Smart parameters are supported.

Returns

True if the provided parameter matches the name of the currently selected block. Otherwise, False.

Level

Page or field.

Details

This action uses the document block layout that is created by the DocumentAnalytics actions. IsSelectedBlockType compares the provided block type to the type of the currently selected block.

Example
RegExFind_InBlock("Da.e")
SelectParentBlock()
IsSelectedBlockType("Line")

This example finds a word, selects the parent of the word and then confirms that the parent is of type Line.