ApplyStyleA

Text, Page layout

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to ApplyStyle and string arguments are interpreted using the current SetAnsiMode code page

Applies a style that was previously saved using the SaveStyle function. The style name is case sensitive, it must exactly match the style name used with the SaveStyle function

Syntax

Delphi

Function DLApplyStyleA(InstanceID: Integer; StyleName: PAnsiChar): Integer;

DLL

int DLApplyStyleA(int InstanceID, const char * StyleName);

Parameters

StyleNameThe name to associate with the style. This name is case sensitive

Return values

0The specified StyleName could not be found The style was applied successfully
1