Sizes the layer to restore its preferred or original aspect ratio (i.e. the ratio of Height:Width).

Some layer types look best at their original aspect ratio. This is particularly true of images and some shapes.

Calling RestoreAspectRatio will resize it (reducing its display size) to display it correctly.

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 7.5.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public void RestoreAspectRatio(
	bool preferredOnly
)
Public Sub RestoreAspectRatio ( _
	preferredOnly As Boolean _
)
public:
void RestoreAspectRatio(
	bool preferredOnly
)

Parameters

preferredOnly
Boolean
If PreferredOnly = True then it is only sized if it has a PreferredAspectRatio. If PreferredOnly = False and it does not have a PreferredAspectRatio then it is restored to its design size.

See Also