Vcl.Themes.TCustomStyleServices.ContentRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ContentRect(DC: HDC; Details: TThemedElementDetails;
const BoundingRect: TRect): TRect; deprecated 'Use GetElementContentRect';

C++

System::Types::TRect __fastcall ContentRect _DEPRECATED_ATTRIBUTE1("Use GetElementContentRect") (HDC DC, const TThemedElementDetails &Details, const System::Types::TRect &BoundingRect);

Properties

Type Visibility Source Unit Parent
function public
Vcl.Themes.pas
Vcl.Themes.hpp
Vcl.Themes TCustomStyleServices

Description

Warning: ContentRect is deprecated. Please use GetElementContentRect.

Gets the background rectangle of the content area of the element.

Call ContentRect to retrieve the rectangle that contains the background area of a control when styles are enabled.

Details represents the user interface element from which the information is being retrieved.

Note: ContentRect is deprecated; use GetElementContentRect instead.

See Also