Show / Hide Table of Contents

Property AutotextTriggers.this


Overload

Adds an autotext trigger.

public Action<AutotextTriggerArgs> this[string text, TAFlags? flags = null, TAPostfix? postfixType = null, string postfixChars = null, string f_ = null, int l_ = 0] { set; }
Parameters
text  (string)

The action runs when the user types this text and a postfix character or key. By default case-insensitive.

flags  (TAFlags?)

Options. If omitted or null, uses AutotextTriggers.DefaultFlags. Some flags are used by AutotextTriggerArgs.Replace.

postfixType  (TAPostfix?)

Postfix type (character, key, any or none). If omitted or null, uses AutotextTriggers.DefaultPostfixType; default - a non-word character or the Ctrl key.

postfixChars  (string)

Postfix characters used when postfix type is Char or CharOrKey (default). If omitted or null, uses AutotextTriggers.DefaultPostfixChars; default - non-word characters.

f_  (string)

Caller info parameter

l_  (int)

Caller info parameter

Exceptions
ArgumentException
  • Text is empty or too long. Can be 1 - 100 characters.
  • Postfix characters contains letters or digits.
InvalidOperationException

Cannot add triggers after ActionTriggers.Run was called, until it returns.

Property Value
Action<AutotextTriggerArgs>

Examples

See ActionTriggers.