Show / Hide Table of Contents

Enum TAFlags

Flags of autotext triggers.

[Flags]
public enum TAFlags : byte
Remarks

To avoid passing flags to each trigger as the flags parameter, use AutotextTriggers.DefaultFlags; its initial value is 0, which means: case-insensitive, erase the typed text with Backspace, modify the replacement text depending on the case of the typed text.


Namespace: Au.Triggers
Assembly: Au.dll

Fields

Name Description
Confirm

Let AutotextTriggerArgs.Replace call AutotextTriggerArgs.Confirm and do nothing if it returns false.

DontErase

Let AutotextTriggerArgs.Replace don't erase the user-typed text. Without this flag it erases text with the Backspace key or selects with Shift+Left. If Replace not called, text is not erased/selected regardless of this flag.

MatchCase

Case-sensitive.

RemovePostfix

Let AutotextTriggerArgs.Replace remove the postfix delimiter character.

ReplaceRaw

Let AutotextTriggerArgs.Replace don't modify the replacement text. Without this flag it:

  • If the first character of the typed text is uppercase, makes the first character of the replacement text uppercase.
  • If all typed text is uppercase, makes the replacement text uppercase.

Also does not modify if used flag MatchCase or HTML.

ShiftLeft

Let AutotextTriggerArgs.Replace select text with Shift+Left instead of erasing with Backspace. Except in console windows. See also AutotextTriggerArgs.ShiftLeft.

Extension Methods

ExtMisc.HasAny<TAFlags>(TAFlags, TAFlags)
ExtMisc.Has<TAFlags>(TAFlags, TAFlags)
ExtMisc.SetFlag<TAFlags>(ref TAFlags, TAFlags, bool)