ToggleSrc Method (Article)

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 17:07

Description

Expands or collapses the source panel of the nIdx article element

If the nIdx element is not open in source mode the command does not do anything.

Available in Ted and in Fred.

Syntax

object.ToggleSrc nIdx, nToggle

object

Required. Object name. Returned by Ted.GetActiveArticle.

nIdx

Required. Ordinal number of article element. To get the idx of the current element, use GetCurTxtIdx.

nToggle

Required. Toggle number. nToggle=0 to collapse, nToggle=1 to expand, nToggle=2 to toggle.

Example

Ted.GetActiveArticle.ToggleSrc(0,0)

collapses the source view of the first text in the article.

Context

Article object