SpreadsheetGear
CreateCustomControl Method
See Also  Send Feedback
SpreadsheetGear.Windows.Forms Namespace > UIManager Class : CreateCustomControl Method

shape
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

Visual Basic (Declaration) 
Public Overridable Function CreateCustomControl( _
   ByVal shape As IShape _
) As Control
C# 
public virtual 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

Platforms: Windows 2000, Windows XP, Windows Vista, Windows Server 2003 and Windows Server 2008. SpreadsheetGear 2009 requires the Microsoft .NET Framework 2.0 and supports .NET 3.0 and .NET 3.5.

See Also

Copyright © 2003-2009 SpreadsheetGear LLC. All Rights Reserved.Help Powered by Innovasys   
SpreadsheetGear is a registered trademark of SpreadsheetGear LLC.
Microsoft, Microsoft Excel and Visual Studio are trademarks or registered trademarks of Microsoft Corporation.