Sign in Join
FPDoc Onlineexperiment

TCustomTreeView.GetImageSize function

Member of TCustomTreeViewprotectedIn unit ComCtrls

Gets a TSize instance with the dimensions for images in the control.

Declaration

pascal
function GetImageSize: TSize

Function result

TSize instance with the dimensions for images in the control.

Description

GetImageSize is a TSize function used to get the dimensions for images displayed in the tree view control. The return value has Width and Height members with the image dimensions.

When an image list has been assigned to the Images property, its SizeForPPI method is used to scale the value in ImagesWidth to the current display density in Font. When Images has not been assigned, the GetBuiltinIconSize method is called to get the return value.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.