This document is archived and information here might be outdated.  Recommended version.


ICommandItem.Refresh Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IC > ICommandItem Interface > ICommandItem.Refresh Method
ArcGIS Developer Help

ICommandItem.Refresh Method

Causes the command to be redrawn.

[Visual Basic .NET]
Public Sub Refresh ( _
)
[C#]
public void Refresh (
);

Product Availability

Available with ArcGIS Desktop.

Description

Causes the command item to be redrawn on the CommandBar in order to correctly display any new property changes.

It is generally unnecessary to explicitly call Refresh; CommandItem updates such as setting the caption, image, and style all automatically call Refresh.

See Also

ICommandItem Interface