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


ILegendWizard.DoModal Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > CartoUI > ESRI.ArcGIS.CartoUI > Interfaces > IL > ILegendWizard Interface > ILegendWizard.DoModal Method
ArcGIS Developer Help

ILegendWizard.DoModal Method

Displays the legend wizard.

[Visual Basic .NET]
Public Function DoModal ( _
    ByVal parentHWnd As Integer _
) As Boolean
[C#]
public bool DoModal (
    int parentHWnd
);

Product Availability

Available with ArcGIS Desktop.

Remarks

Before calling the DoModal method on the LegendWizard, you must first do appropriate setup of a Legend object.  This includes creating a Legend object, adding it as a MapSurround to the FocusMap, and assigning a valid Envelope to the Legend's element geometry.

See Also

ILegendWizard Interface