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


IScreenDisplay.ScaleContents Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IS > IScreenDisplay Interface > IScreenDisplay.ScaleContents Property
ArcGIS Developer Help

IScreenDisplay.ScaleContents Property

Indicates if the contents of the screen scale when a resize occurs. True means scale contents to fit new window size. False means contents stays the same with more or less of it showing.

[Visual Basic .NET]
Public Property ScaleContents As Boolean
[C#]
public bool ScaleContents {get; set;}
[C++]
HRESULT get_ScaleContents(
  VARIANT_BOOL flag
);
[C++]
HRESULT put_ScaleContents(
  Boolean* flag
);
[C++]
Parameters
flag [in]

flag is a parameter of type bool flag [out, retval]
flag is a parameter of type bool*

Product Availability

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

Remarks

If a Map's ScaleContents property is set to TRUE, when its display is resized, the area shown stays the same and the scale changes.  When set to FALSE, the scale of the Map stays the same and the area shown changes.

The PageLayout object works similarly.  If set to TRUE, the contents are stretched when the display is resized.  The scale of all maps changes. When set to FALSE, the page remains the same size.

In ArcMap, on the Tools/Options menu, there are check boxes for controlling this property for the data and layout view.

See Also

IScreenDisplay Interface