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


ILegend2.FitToBounds Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILegend2 Interface > ILegend2.FitToBounds Method
ArcGIS Developer Help

ILegend2.FitToBounds Method

Adjusts the map surround to fit the bounds. The changed argument indicates whether the size of the map surround was changed.

[Visual Basic .NET]
Public Sub FitToBounds ( _
    ByVal Display As IDisplay, _
    ByVal Bounds As IEnvelope, _
    ByRef changed As Boolean _
)
[C#]
public void FitToBounds (
    IDisplay Display,
    IEnvelope Bounds,
    ref bool changed
);
[C++]
HRESULT FitToBounds(
  IDisplay* Display,
  IEnvelope* Bounds,
  Boolean* changed
);
[C++]
Parameters
Display [in]

Display is a parameter of type IDisplay* Bounds [in]
Bounds is a parameter of type IEnvelope* changed [out]
changed is a parameter of type bool*

Product Availability

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

See Also

ILegend2 Interface