Vcl.Graphics.TGraphicsObject.HandleAllocated

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function HandleAllocated: Boolean;

C++

bool __fastcall HandleAllocated();

Properties

Type Visibility Source Unit Parent
function public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TGraphicsObject

Description

Indicates whether the TGraphicsObject object has acquired a handle to the underlying GDI object.

Use HandleAllocated to determine whether the Handle property is set for the graphics object. HandleAllocated indicates whether the underlying GDI object has been acquired. Use HandleAllocated rather than reading the Handle property. When an application reads the Handle property, TGraphicsObject descendants automatically create the underlying GDI object and return its handle if the property had not been previously set.

See Also