Skip to main content
Table of Contents

TTMSFNCUtils.GetOwnerForm Method

Returns the form that owns or contains a component.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

FMX.TMSFNCUtils.hppPascalC++
class function GetOwnerForm(AComponent: TComponent): TCustomForm;
__classmethod Fmx::Forms::TCustomForm* __fastcall GetOwnerForm(System::Classes::TComponent* AComponent);

Parameters

Name Description
AComponent Component whose owner and parent hierarchy are inspected.

Returns

Owner or parent form, or nil when no form is found.