Spread 8.0 Documentation
AddCustomCellType Method
Support Options
ActiveX Reference > ActiveX Methods > AddCustomCellType Method

Glossary Item Box

AddCustomCellType Method


See Also    DLL    Example

Applies To

fpSpread control

Description

Adds a new custom cell type.

Syntax

C++

BOOL CSpreadSheet::AddCustomCellType(LPCTSTR Name, BOOL Editable,BOOL CanOverflow, BOOL CanBeOverflown,BOOL UseRendererControl);

Visual Basic

fpSpread.AddCustomCellType(ByVal Name As String, ByVal Editable As Boolean,ByVal CanOverflow As Boolean,ByVal CanBeOverflown As Boolean,UseRendererControl As Boolean) As Boolean

Parameters

The following parameters are available:

Parameter Description
Name Name of the custom cell
Editable Whether the cell is editable
CanOverflow Whether the cell can over flow into another cell
CanBeOverflown Whether another cell can over flow into the cell
UseRendererControl Whether to use a control renderer

Remarks

This method is applied to the entire workbook, including all sheets in the control. Add code to the appropriate events to create the custom cell.

The UseRendererControl allows you to specify whether you want to use your own control renderer.

You can use the class name for a registered window class as the name of the custom cell type if you want the Spread control to create the window for you. The class should be previously registered with RegisterClass. If not, you will get a null.

Return Type

True if successful; otherwise, False.

See Also

Creating Custom Cells

TypeCustomName,Type CustomStyle properties

EnumCustomCellType, GetCustomCellType, RemoveCustomCellType methods

DLL Correspondence

SSAddCustomCellType function

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.