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


IARFeatureSet.Highlight Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (PublisherControls)  

IARFeatureSet.Highlight Method

Highlights the features in the ARFeatureSet.

[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 all the features in the ARFeatureSet 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 an ARFeatureSet, 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 ARFeatureSet

Dim UIntColor as UInteger

UIntColor=System.Drawing.ColorTranslator.ToWin32(Color.Red)

'Highlight

pARFeatureSet.Highlight(True, UIntColor)

'Clear Highlight

pARFeatureSet.Highlight(False, UIntColor)

See Also

IARFeatureSet Interface