IStyleContainer.Id

Syntax

Id: String;

Description

The Id property returns the style container identifier.

Example

Sub Main;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    StyleSheet: IStyleSheet;
    Style: IStyleContainer;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById(
"Global_Style").Edit;
    StyleSheet := MObj 
As IStyleSheet;
    Style := StyleSheet.Item(StyleSheet.Count - 
1);
    Style.Id := Style.Id + 
"_Last_Stele";
    MObj.Save;
End Sub Main;

After executing the example the identifier of the last style container of the styles table with the Global_Style identifier is changed.

See also:

IStyleContainer