Table of Contents

Interface ITitleCommand

Namespace
Hi.SessionCommands
Assembly
HiNc.dll

ISessionCommand with title.

[CultureText("zh-Hant", "開", Key = "On")]
[CultureText("zh-Hans", "开", Key = "On")]
[CultureText("zh-Hant", "關", Key = "Off")]
[CultureText("zh-Hans", "关", Key = "Off")]
public interface ITitleCommand : ISessionCommand, IMakeXmlSource
Inherited Members
Extension Methods

Methods

GetCommandTitle(ICommandTextSource)

Gets the title of the command — one row in a command list or a mission tree — composed from the caller's vocabulary: the command owns the composition and degradation rules, the caller owns the language.

The shape is Name, or Name [detail] once there is a detail worth showing. The NAME always leads and is never dropped: a row must say WHAT it is even when the detail is a title the user wrote, otherwise a newcomer cannot tell a command list from a script. The detail trails because these rows truncate from the right. An empty detail takes the bare-name form rather than rendering dangling brackets.

string GetCommandTitle(ICommandTextSource text)

Parameters

text ICommandTextSource

Culture-bearing vocabulary the static words are taken from.

Returns

string

The command title.