SpreadsheetGear 2023
CreateCustomControl Method (UIManager)


SpreadsheetGear.Windows.Forms Namespace > UIManager Class : CreateCustomControl Method
Specifies the shape in question; check the ID or Name property to distinguish one shape from another.
Returns the Control to use in place of the specified autoshape or null if the default autoshape should be used.
Syntax
'Declaration
 
Public Overridable Function CreateCustomControl( _
   ByVal shape As IShape _
) As System.Windows.Forms.Control
'Usage
 
Dim instance As UIManager
Dim shape As IShape
Dim value As System.Windows.Forms.Control
 
value = instance.CreateCustomControl(shape)
public virtual System.Windows.Forms.Control CreateCustomControl( 
   IShape shape
)

Parameters

shape
Specifies the shape in question; check the ID or Name property to distinguish one shape from another.
Remarks

Override this method to provide a custom control replacement for an autoshape. Worksheet form controls such as checkboxes cannot be replaced.

The control will be disposed of as soon as it is scrolled out of view and CreateCustomControl will be called again if it is scrolled back into view.

Requirements

Target Platforms: Windows 7, 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

Reference

UIManager Class
UIManager Members