[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TCustomTreeView.GetImageSize

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

Declaration

Source position: comctrls.pp line 3558

protected function TCustomTreeView.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

TCustomTreeView.GetBuiltinIconSize

  

Gets the default size for icons when Images has not been assigned.

TCustomTreeView.Images

  

Image list which holds icons for the tree nodes in Items.

TCustomTreeView.ImagesWidth

  

Width for the Images used in the tree view control.

TControl.Font

  

The font to be used for text display in this control.


Version 3.2 Generated 2024-02-25 Home