Vcl.Themes.TCustomStyleServices.GetElementSize

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetElementSize(DC: HDC; Details: TThemedElementDetails;
ElementSize: TElementSize; out Size: TSize; DPI: Integer = 0): Boolean; overload;
function GetElementSize(DC: HDC; Details: TThemedElementDetails;
const Rect: TRect; ElementSize: TElementSize; out Size: TSize; DPI: Integer = 0): Boolean; overload;

C++

bool __fastcall GetElementSize(HDC DC, const TThemedElementDetails &Details, TElementSize ElementSize, /* out */ System::Types::TSize &Size, int DPI = 0x0)/* overload */;
bool __fastcall GetElementSize(HDC DC, const TThemedElementDetails &Details, const System::Types::TRect &Rect, TElementSize ElementSize, /* out */ System::Types::TSize &Size, int DPI = 0x0)/* overload */;

Properties

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

Description

Determines the size for the specified part of a control.

Call GetElementSize to obtain the size of the rectangle that contains the part of the control specified by Details. ElementSize represents the type of size to be returned: minimum, actual, or stretch.

See Also