SkinProperties

public static class SkinProperties
Static knowledge about skin properties: which combinations of PropertyId bits exist, what kind of value each holds, and how identifiers are written as text.

Properties

All

#
Gets every property that exists, in both modes, in a stable order.
public static PropertyId[] All { get; }

IconColourRoles

#
public static PropertyId[] IconColourRoles { get; }

IconShades

#
public static PropertyId[] IconShades { get; }

Methods

Family

#
public static PropertyId Family()

HasCore

#
public static bool HasCore(
wireKind
)

HasDash

#
Only the wires that signal a state are dashed: empty, disabled and tentative. Item, list and tree wires are always solid, and say what they carry through width and core.
public static bool HasDash(
wireKind
)

HasOverlay

#
Only disabled objects are drawn with an overlay, so the role exists for those shades alone.
public static bool HasOverlay(
variant
)

HasSelection

#
public static bool HasSelection(
wireGroup
)

InMode

#
Gets every property in a given mode.
public static PropertyId[] InMode()

IsValid

#
public static bool IsValid()

KindOf

#
public static PropertyType KindOf()

Mode

#
public static PropertyId Mode()

Role

#
public static PropertyId Role()

ToToken

#
Write a property as a token: mode, family, role and variants separated by full stops, several variants joined by plus signs. Shade, grip and icon colour properties without any variant carry the word Normal.
public static string ToToken()

TryParse

#
Parse a token written by ToToken(PropertyId). Case-insensitive.
public static bool TryParse(
token,
id
)

Variant

#
public static PropertyId Variant()

WithMode

#
public static PropertyId WithMode()

WithRole

#
public static PropertyId WithRole()

WithVariant

#
public static PropertyId WithVariant()