Vcl.Graphics.TCustomCanvas.LockCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property LockCount: Integer read FLockCount;

C++

__property int LockCount = {read=FLockCount, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TCustomCanvas

Description

Indicates the number of times the canvas has been locked to prevent interference caused by other threads.

Read LockCount to determine whether the canvas is locked. Whenever the Lock method is called to block other threads from interfering with the canvas, LockCount increases. Whenever the Unlock method is called at the end of a critical section, LockCount decreases. When LockCount is 0, other threads may draw on the canvas.

See Also