SpreadsheetGear 2010
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

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Copyright © 2003-2010 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.