IWxStyles.Item

Syntax

Item(Index: Integer): IWxStyle;

Parameters

Index. Style index.

Description

The Item property returns a style by the defined index.

Example

Executing the example requires an existing ws object of the IWxWorkspace type.

Sub UserProc;

Var

ws: IWxWorkspace;

Sts : IWxStyles;

style : IWxStyle;

Begin

Sts := Ws.Styles;

style := Sts.Item(0);

style.BackgroundBrushForeColor := GxColor.FromName("Red");

End Sub UserProc;

After executing the example the color of background fill is changed for the found style.

See also:

IWxStyles