Table of Contents

TXlsFile.TryGetBuiltInStyleType Method

Tries to convert a string into an built-in style identifier. Will return true if styleName can be converted, false otherwise.

Syntax

Unit: FlexCel.XlsAdapter

function TXlsFile.TryGetBuiltInStyleType(const styleName: string; out style: TBuiltInStyle; out level: Integer): Boolean; override;

Parameters

<-> Parameter Type Description
const styleName string Style that we want to convert to built-in style.
out style TBuiltInStyle Returns the built-in style. This value is only valid if this method returns true.
out level Integer Returns the level built-in style (1 based). This value is only valid if this method returns true, and only applies to outline styles. It will be 0 for non outline styles.

Returns

True is styleNameis a built-in style (and thus style and level are valid), false otherwise.

See also