KitchenDraw SDK 2
Show / Hide Table of Contents

Property ActiveTableType

ActiveTableType

A type of the table currently selected in the MobiScript window.

Declaration
public Catalog.TableType ActiveTableType { get; set; }
Property Value
Type Description
Catalog.TableType
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