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


IEditor.Display Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Editor)  

IEditor.Display Property

Reference to the current display.

[Visual Basic .NET]
Public ReadOnly Property Display As IScreenDisplay
[C#]
public IScreenDisplay Display {get;}

Product Availability

Available with ArcGIS Desktop.

Remarks

Operations such as drawing and coordinate conversion require a display object. The Display property conveniently hands back the display object that should be used for all edit operations. Which display object does this property give back?

When working in the data view there are several display objects: the map itself has one and so do each of the magnifier windows. IScreenDisplay is a special type of display that dispatches draw requests to all of the display objects available. In data view, the editor hands back a reference to IAppDisplay because it expects that you want to draw in all of the available views. For example, the editor's tools draw the edit sketch using IAppDisplay so that it will appear on the map as well as in all the magnifier windows.

In layout view there are again several display objects. Each map has its own display object and so does the layout object itself. In this case, the editor hands back the display object associated with the current edit map. In this case, the editor expects that you only want to draw things in the current edit map.

See Also

IEditor Interface

.NET Samples

Points along line construction tool (Code Files: PointsAlongLineForm) | Angle Angle shape constructor (Code Files: AngleAngleCstr)