Table of Contents

TimeLayoutItem 类

命名空间
ClassIsland.Shared.Models.Profile
程序集
ClassIsland.Shared.dll

代表一个TimeLayout中的时间点。

public class TimeLayoutItem : AttachableSettingsObject, INotifyPropertyChanged, INotifyPropertyChanging, IComparable
继承
TimeLayoutItem
实现
继承成员

字段

Empty

代表一个空时间点。

public static readonly TimeLayoutItem Empty

字段值

TimeLayoutItem

属性

ActionSet

当当前时间点为【行动】时,要执行的行动组

public ActionSet? ActionSet { get; set; }

属性值

ActionSet

BreakName

自定义课间名称。应使用BreakNameText获取实际课间名称。

public string BreakName { get; set; }

属性值

string

BreakNameText

课间名称。

[JsonIgnore]
public string BreakNameText { get; }

属性值

string

DefaultClassId

默认科目ID

public string DefaultClassId { get; set; }

属性值

string

EndSecond

时间段在一天中结束的秒钟数

public DateTime EndSecond { get; set; }

属性值

DateTime

IsHideDefault

是否默认隐藏

public bool IsHideDefault { get; set; }

属性值

bool

Last

[JsonIgnore]
public TimeSpan Last { get; }

属性值

TimeSpan

StartSecond

时间段在一天中开始的秒钟数

public DateTime StartSecond { get; set; }

属性值

DateTime

TimeType

时间点类型

public int TimeType { get; set; }

属性值

int

0 - 上课
1 - 课间
2 - 分割线
3 - 行动

方法

CompareTo(object?)

与另一个TimeLayoutItem比较

public int CompareTo(object? obj)

参数

obj object

要比较的对象

返回

int