Id: String;
The Id property determines formatting style identifier.
By default, styles will be assigned with the Style N identifiers, where N is a style number.
Executing the example requires an existing ws object of the IWxWorkspace type.
Sub UserProc;
Var
Ws : IWxWorkspace;
style : IWxStyle;
Begin
style := Ws.CreateStyle;
style.Id := "New_Style";
style.IsPrivate := False;
style.BackgroundBrushForeColor := GxColor.FromName("Red");
style.ShadowBrushForeColor := GxColor.FromName("Yellow");
style.TextAlignmentHorizontal := GxAlignment.Far;
End Sub UserProc;
After executing the example the added style is displayed in the styles collection.
See also: