Spread 8.0 Documentation
TypeCustomStyle Property
Support Options
ActiveX Reference > ActiveX Properties > TypeCustomStyle Property

Glossary Item Box

TypeCustomStyle Property


See Also    DLL

Applies To

fpSpread control

Description

Sets or returns the style for the custom cell type. This property is available at run time only.

Syntax

C++

Long CSpreadSheet::GetTypeCustomStyle( );
void CSpreadSheet::SetTypeCustomStyle(LONG value);

Visual Basic

[form.]fpSpread.TypeCustomStyle[ = value]

Remarks

Set TypeCustomStyle and TypeCustomName before setting the CellType property.

To use the TypeCustomStyle property, specify the sheet with which you want to work by setting the Sheet property. Then specify the cell or cells to which to apply the property, as described in Using Column and Row Properties. Once you set the TypeCustomStyle property for a cell or cells, any subsequent custom cells you create will use the same TypeCustomStyle setting unless you reset it for those cells.

The TypeCustomStyle property does not have an effect unless the CellType property is set to 16 (Custom) for the specified cell or cells.

The value for this property is used to specify window styles when the Spread control creates the editor and/or renderer controls for the cell (if the custom cell type name is the name of the window class). Otherwise, the Spread control does not use this value. The value will default to 0; however, if you set it to a value, it will stay that way until it is changed (or the Col or Row is changed).

Data Type

Long

See Also

Variations in Windows Regional Settings or Options
Formatting a Currency Cell

CellType, Sheet, TypeCustomItemData, TypeCustomName properties

DLL Correspondence

SSAddCustomCellType function

Copyright © GrapeCity, inc. All rights reserved.