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


IPictureElement.MaintainAspectRatio Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IP > IPictureElement Interface > IPictureElement.MaintainAspectRatio Property
ArcGIS Developer Help

IPictureElement.MaintainAspectRatio Property

Indicates if the resize box will maintain the picture's aspect ratio.

[Visual Basic .NET]
Public Property MaintainAspectRatio As Boolean
[C#]
public bool MaintainAspectRatio {get; set;}
[C++]
HRESULT get_MaintainAspectRatio(
  Boolean* bRatio
);
[C++]
HRESULT put_MaintainAspectRatio(
  VARIANT_BOOL bRatio
);
[C++]
Parameters
bRatio [out, retval]

bRatio is a parameter of type bool* bRatio [in]
bRatio is a parameter of type bool

Product Availability

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

Remarks

MaintainAspectRatio specifies whether the ratio between the x and y lengths (width and height) of the picture need to be maintained when resizing.  If the MaintainAspectRatio property is set to False, the width and height of the picture can be adjusted independently.  If the property is True, then the width and height can only be manipulated together to maintain the same ratio.

 

See Also

IPictureElement Interface