How to control the "View Unplaced Lables" setting in ArcMap programmatically

06-26-2012 01:14 AM
New Contributor II
Hello all,

I want to control the "View Unplaced Labels" setting in ArcMap programmatically.
This feature is somewhat accessible through the ICommandItem interface:
private static ICommandItem ArcMapUI_LabelViewUnplacedCommand
        return ArcMapApplicationDocumentCommandBarsFind("esriArcMapUI.LabelViewUnplacedCommand"); 

However, I???m looking for a way to explicitly set whether unplaced labels are drawn or not.
If there is a way to determine the current status of the command item, this will be fine of course, as the status can be toggled by calling ICommandItem.Execute().

Best regards,
0 Kudos
0 Replies