Table of Contents

Method SetShortcuts

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

SetShortcuts(IEnumerable<KeyValuePair<string, string>>, IEnumerable<KeyValuePair<string, string>>)

Sets the aliases and keys: each alias and key to a command's name, letters of either case the same. A key given to two commands is kept, and said by ShortcutConflicts(IEnumerable<string>).

public void SetShortcuts(IEnumerable<KeyValuePair<string, string>> aliases, IEnumerable<KeyValuePair<string, string>> keys)

Parameters

aliases IEnumerable<KeyValuePair<string, string>>

The aliases.

keys IEnumerable<KeyValuePair<string, string>>

The keys.

Exceptions

ArgumentNullException

Thrown when either is null.

ArgumentException

Thrown when an alias or key, or its command, is empty.