KitchenDraw SDK 2
Show / Hide Table of Contents

Property ActiveLineRank

ActiveLineRank

Rank of the focused line in an active table shown in the MobiScript window.

Declaration
public int ActiveLineRank { get; set; }
Property Value
Type Description
int
Examples
if (appli.MobiscriptWindow.CatalogFilename != ""
 && appli.MobiscriptWindow.ActiveTableType == Catalog.TableType.Blocks)
{
    appli.Catalog.UseMobiscriptCatalog();

    var activeTable =
        appli.Catalog.Tables[appli.MobiscriptWindow.ActiveTableType];

    var activeLine =
        activeTable.Rows[appli.MobiscriptWindow.ActiveLineRank];

    Console.WriteLine(
        "The code of the block currently selected " +
        $"in MobiScript window is {activeLine.Cells[0]}");
}
In this article
Back to top Generated by DocFX