Table of Contents

SettingsInfo 类

命名空间
ClassIsland.Core.Attributes
程序集
ClassIsland.Core.dll

应用设置属性信息。
用于:行动“应用设置”中用户选择应用设置。

[AttributeUsage(AttributeTargets.Property)]
public class SettingsInfo : Attribute
继承
SettingsInfo
继承成员

构造函数

SettingsInfo(string?, string?, string[]?, double)

应用设置属性信息。
用于:行动“应用设置”中用户选择应用设置。

public SettingsInfo(string? name = null, string? glyph = null, string[]? enums = null, double order = 10)

参数

name string

应用设置属性中文名称。

glyph string

应用设置属性图标。

enums string[]

应用设置属性枚举项中文名称。

order double

应用设置属性排序顺序。数字越大排在越后。默认值为 10。

属性

Enums

应用设置属性枚举项中文名称。

public string[]? Enums { get; set; }

属性值

string[]

Glyph

应用设置属性图标。

public string? Glyph { get; set; }

属性值

string

Name

应用设置属性中文名称。

public string? Name { get; set; }

属性值

string

Order

应用设置属性排序顺序。数字越大排在越后。

public double Order { get; set; }

属性值

double