GetHeaderPart()

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Add On > NTTabPage Class >

GetHeaderPart()

Previous page Return to chapter overview Next page

Definition

Indicates the tab header name.

 

 

Examples

ns

// NTTabPage member. Required for determining the tab header name

protected override string GetHeaderPart(string variable)

{

    // Determine the text for the tab header name

    switch (variable)

    {

        case "@INSTRUMENT": return Instrument == null ? Resource.GuiNewTab : Instrument.MasterInstrument.Name;

        case "@INSTRUMENT_FULL": return Instrument == null ? Resource.GuiNewTab : Instrument.FullName;

    }

    return variable;

}