How to get the state of a option in context menu whether it is enabled or not

I want to get the state of a options available in context menu that whether they are enable or disable as per the below ss:
I tried to perform it by using the get Attribute as per the below ss :
but i am always getting the astate as ENABLED even when it is disable:
Kindly Help Regarding this.

Shreya Jain

Hi @shreyaj661,

What are you trying to achieve by doing this, is this a project requirement then please provide more information.

But as a small example for notepad, i have made a sample workflow which checks whether Font is enabled or not and gives the output of true or false.

Refer the below workflow.

Test.xaml (20.0 KB)