Skip to content

HeightPercent Property

Description

Sets the height of the block in relation to the height of the track.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property HeightPercent() As Double

Return Type

Height percentage the block will use.

Remarks

Height percentage is represented on a scale from 0.0 (0).

Blocks can also be different heights and set to different vertical alignments within the track. This is used just as a visual aid to make different blocks in the track visually different from each other.

Block.HeightPercent = 0.5

The code above simply makes the block 50% the size of the track height.

It is important to note that not all properties are used when the TrackBlock represents a Key. Properties not used by a key are HeightPercent, Length, MaxLength, and MinLength.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.