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


IActiveView.ShowSelection Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IActiveView.ShowSelection Property

Indicates if selection is visible.

[Visual Basic .NET]
Public Property ShowSelection As Boolean
[C#]
public bool ShowSelection {get; set;}
[C++]
HRESULT get_ShowSelection(
  VARIANT_BOOL* ShowRulers
);
[C++]
HRESULT put_ShowSelection(
  VARIANT_BOOL ShowRulers
);
[C++]

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

This property is primarily used to hide a Map's element selection in layout view unless a Map has been activated.

When in layout view, the PageLayout always has its ShowSelection set to true, setting it to false has no effect.  Similarly, when in data view, the focus Map always has its ShowSelection set to true and this cannot be overridden.

See Also

IActiveView Interface