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

TCustomTreeView.DefaultItemHeight

Default height for tree nodes in the control.

Declaration

Source position: comctrls.pp line 3739

public property TCustomTreeView.DefaultItemHeight : Integer
  read FDefItemHeight
  write SetDefaultItemHeight
  stored DefaultItemHeightIsStored;

Description

DefaultItemHeight is an Integer property with the default height for tree nodes displayed in the control. The default value for the property is defined in the DefaultTreeNodeHeight constant, and assigned in the constructor for the class instance.

When tvoAutoItemHeight has been included in the Options for the control, the property value is determined using the Font and the images for the control. A new value assigned to the property is ignored when automatic item height has been enabled.

The value may be changed when a layout adjustment policy is applied in DoAutoAdjustLayout, or when the UpdateDefaultItemHeight method is called. It is also updated (if needed) when values are assigned to the Images or StateImages properties.

Setting a new value for the property causes the control to be redrawn.

DefaultItemHeight is the value used in the TTreeNode.Height property for tree nodes added to the Items container.

See also

TCustomTreeView.Options

  

The set of options enabled in the tree view control.

TCustomTreeView.Images

  

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

TCustomTreeView.StateImages

  

Image list with the bitmaps used to represent the state for nodes in the tree.

TCustomTreeView.Items

  

The container with the TTreeNode instances for the control.

TCustomTreeView.UpdateDefaultItemHeight

  

Calculates and updates the value in the DefaultItemHeight property.

TTreeNode.Height

  

The height for the node including its text, images, and indicators.

TTreeNodes

  

Implements a container for TTreeNode instances.

DefaultTreeNodeHeight

  

Default value used as the height for a TTreeNode instance.

TControl.Font

  

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


Version 3.2 Generated 2024-02-25 Home