'Declaration
Public Overridable Function CreateCustomControl( _ ByVal shape As IShape _ ) As System.Windows.FrameworkElement
Parameters
- shape
- Specifies the shape in question; check the ID or Name property to distinguish one shape from another.
'Declaration
Public Overridable Function CreateCustomControl( _ ByVal shape As IShape _ ) As System.Windows.FrameworkElement
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.
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