Vcl.Themes.TCustomStyleServices.GetElementMargins
Delphi
function GetElementMargins(DC: HDC; Details: TThemedElementDetails; ElementMargin: TElementMargin; out Margins: TElementMargins): Boolean; overload;
function GetElementMargins(DC: HDC; Details: TThemedElementDetails; const Rect: TRect; ElementMargin: TElementMargin; out Margins: TElementMargins): Boolean; overload;
C++
bool __fastcall GetElementMargins(HDC DC, const TThemedElementDetails &Details, TElementMargin ElementMargin, /* out */ _MARGINS &Margins)/* overload */;
bool __fastcall GetElementMargins(HDC DC, const TThemedElementDetails &Details, const System::Types::TRect &Rect, TElementMargin ElementMargin, /* out */ _MARGINS &Margins)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Themes.pas Vcl.Themes.hpp |
Vcl.Themes | TCustomStyleServices |
Description
Determines the margins of the element in the current style.
Call GetElementMargins to retrieve the margins of the control specified by Details
.