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


IARFeature.Highlight Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (PublisherControls)  

IARFeature.Highlight Method

Highlights the feature on the display.

[Visual Basic .NET]
Public Sub Highlight ( _
    ByVal bHighlight As Boolean, _
    ByVal color As Integer _
)
[C#]
public void Highlight (
    bool bHighlight,
    int color
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Highlights the ARFeature on the display.  By deafult the screen is automatically refreshed.

Remarks

This method acts on an instance of an object.  In order to toggle the highlighting of a feature, one must work with the same instance of the object.

The Highlight method triggers the following events:

OnBeforeScreenDraw
OnAfterScreenDraw

[Visual Basic .NET]
'Assuming we have an ARFeature
Dim UIntColor as UInteger
UIntColor= System.Drawing.ColorTranslator.ToWin32(Color.Red)
'Highlight
pARFeature.Highlight(True, UIntColor)
'Clear Highlight
pARFeature.Highlight(False, UIntColor)

See Also

IARFeature Interface