SelElement.TextFormatId

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:16

Description

Set/get the format id of the local text frame.

GN4-1784. Available since build 2.0.1972.x.

Syntax

Page.SelElement().TextFormatId [=] id

id        

A valid database id of a format.

Remarks

If the selected object is not a text frame, it returns 0. If you assign an invalid id, or wrong format, an error message is displayed.

Example

MsgBox(Page.SelElement().TextFormatId)

Page.SelElement().TextFormatId = 1966

Context

Page designer