IStyleContainer.Id

Syntax

Id: String;

Description

The Id property returns the style container identifier.

Example

Executing the example requires that the repository contains a styles table with the Global_Style identifier.

Add links to the Drawing and Metabase system assemblies.

Sub UserProc;
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 UserProc;

After executing the example the identifier of the last style container is changed.

See also:

IStyleContainer