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

Glossary Item Box

TypeOwnerDrawStyle Property


See Also    DLL    Example

Applies To

fpSpread control

Description

Sets or returns the style assigned to an owner-drawn cell. This property is available at run time only.

Syntax

C++

long CSpreadSheet::GetTypeOwnerDrawStyle( );
void CSpreadSheet::SetTypeOwnerDrawStyle(long value);

Visual Basic

[form.]fpSpread.TypeOwnerDrawStyle[ = value&]

Remarks

The style assigned to an owner-drawn cell with the TypeOwnerDrawStyle property is user-defined and is not used by the sheet. It is sent to the application with the DrawItem event.

To use the TypeOwnerDrawStyle 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 TypeOwnerDrawStyle property for a cell or cells, any subsequent owner-drawn cells you create will use the same TypeOwnerDrawStyle setting unless you reset it for those cells.

The TypeOwnerDrawStyle property does not have an effect unless the CellType property is set to 11 (Owner-Drawn) for the specified cell or cells.

Spread Designer

Choose the Cell menu, the Cell Type menu, the Owner Draw menu, and then the Settings tab, and then choose or type a number in the Owner Draw ID spin box in the Cell Type Settings dialog box.

Data Type

Long Integer

See Also

Creating Owner-Drawn Cells

CellType, Sheet properties

DrawItem event

DLL Correspondence

SSSetTypeOwnerDraw function

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