Version

AttachElement Method

Attaches an element to the given ISupportRecycling object. If there aren't any available elements of the needed type, a new object will be generated. If the object already has an attached element, then nothing will be done. Note: the element can only be attached to the specified panel.
Syntax
'Declaration
 
Public Function AttachElement( _
   ByVal obj As ISupportRecycling, _
   ByVal parent As Panel _
) As Boolean
public bool AttachElement( 
   ISupportRecycling obj,
   Panel parent
)

Parameters

obj
parent

Return Value

True if the item was newly created and added to the children collection of the panel.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also