Table of Contents

Interface ICustomFlags<TKey>

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Contains methods and properties which allow to work with flags.

public interface ICustomFlags<TKey> : IReadOnlyFlags<TKey>

Type Parameters

TKey

Type of the flag identifier.

Properties

this[TKey]

Calls HasFlag(TKey) and SetFlag(TKey, bool).

Methods

AddFlag(TKey)

Adds flag with id.

RemoveFlag(TKey)

Removes flag with id.

SetFlag(TKey, bool)

Adds flag if value is true, removes flag if its false.

ToggleFlag(TKey)

If flag with id was previously added, it is removed. And if there is no such flag, it is added.