TextFontStyleBold: Boolean;
The TextFontStyleBold property determines whether to use bold font.
If the value is True, bold font is used, if the value is False, it is not used. The default property value is False.
Executing the example requires that the repository contains a workspace with the IWSTYLE identifier that contains a shape.
Add links to the Andy, Drawing, Metabase system assemblies.
Sub UserProc;
Var
Mb: IMetabase;
Wsp: IWxWorkspace;
Shape: IWxShape;
Style: IWxStyle;
Begin
// Get workspace for editing
Mb := MetabaseClass.Active;
Wsp := mb.ItemById("IWSTYLE").Edit As IWxWorkspace;
Wsp.BeginUpdate;
Shape := Wsp.Shapes.Item(0);
Shape.Text := "Text";
Style := Shape.Style;
Style.TextFontSize := 12;
Style.TextFontBrushColor := GxColor.FromName("Red");
Style.TextFontStyleBold := True;
Wsp.EndUpdate;
(Wsp As IMetabaseObject).Save;
End Sub UserProc;
After executing the example an object contains text of defined color, size and of bold font.
See also: