System.Classes.TComponent.SetDesignInstance

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetDesignInstance(Value: Boolean);

C++

void __fastcall SetDesignInstance(bool Value);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.Classes.pas
System.Classes.hpp
System.Classes TComponent

Description

Ensures that components inserted at design time have their design-mode flag set.

SetDesignInstance is used internally by the Form designer to identify objects that act as a design surface. Do not call SetDesignInstance directly.

SetDesignInstance sets the csDesignInstance flag in the ComponentState property if Value is True; otherwise, it removes csDesignInstance.

See Also