ArcObjects Library Reference (Display)  

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(
  VARIANT_BOOL flag
);
[C++]

Parameters

flag [out, retval]   flag is a parameter of type VARIANT_BOOL flag [in]   flag is a parameter of type VARIANT_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