This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARFeature Interface > IARFeature.Highlight Method (ArcObjects .NET 10.5 SDK) |
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 );
Highlights the ARFeature on the display. By deafult the screen is automatically refreshed.
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
'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)