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


IActiveView.ShowSelection Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IA > IActiveView Interface > IActiveView.ShowSelection Property
ArcGIS Developer Help

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(
  Boolean* ShowRulers
);
[C++]
HRESULT put_ShowSelection(
  VARIANT_BOOL ShowRulers
);
[C++]
Parameters
ShowRulers [out, retval]

ShowRulers is a parameter of type bool* ShowRulers [in]
ShowRulers is a parameter of type 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