Open this page in the API Guide

UndoableCommand.invalidReason Property

Gets or sets the value to describe why this command is marked as invalid.