ArcObjects Library Reference (Controls)  

ITOCControlDefault.Enabled Property

Indicates whether the TOCControl can respond to user generated events.

[Visual Basic .NET]
Public Property Enabled As Boolean
[C#]
public bool Enabled {get; set;}
[C++]
HRESULT get_Enabled(
  VARIANT_BOOL* Enabled
);
[C++]
HRESULT put_Enabled(
  VARIANT_BOOL Enabled
);
[C++]

Parameters

Enabled [out, retval]   Enabled is a parameter of type VARIANT_BOOL Enabled [in]   Enabled is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine.

Description

The Enabled property allows a TOCControl to be enabled or disabled at run time. For example, you can disable Controls that don't apply to the current state of the application. A TOCControl which is not enabled will not respond to any keyboard or mouse interaction, and will not fire any mouse or keyboard events to its Buddy.

See Also

ITOCControlDefault Interface