SpreadsheetGear 2023
CreateCustomControl Method (UIManager)


SpreadsheetGear.Windows.Controls Namespace > UIManager Class : CreateCustomControl Method
Specifies the shape in question; check the ID or Name property to distinguish one shape from another.
Returns the FrameworkElement 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.FrameworkElement
'Usage
 
Dim instance As UIManager
Dim shape As IShape
Dim value As System.Windows.FrameworkElement
 
value = instance.CreateCustomControl(shape)
public virtual System.Windows.FrameworkElement 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 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