Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxFilePreviewImageBasedHandler.KeepAspectRatio Method

Indicates if the preview handler keeps the aspect ratio of displayed images.

#Declaration

Delphi
function KeepAspectRatio: Boolean; virtual;

#Returns

Type Description
Boolean

True if the preview handler keeps the aspect ratio of displayed images; otherwise, False.

#Remarks

The built-in KeepAspectRatio function always returns True. You can override this function in a TdxFilePreviewImageBasedHandler class descendant and return False to change the aspect ratio of displayed images.

See Also