TimeLayoutItem 类
- 程序集
- ClassIsland.Shared.dll
代表一个TimeLayout中的时间点。
public class TimeLayoutItem : AttachableSettingsObject, INotifyPropertyChanged, INotifyPropertyChanging, IComparable
- 继承
-
TimeLayoutItem
- 实现
- 继承成员
字段
Empty
代表一个空时间点。
public static readonly TimeLayoutItem Empty
字段值
属性
ActionSet
当当前时间点为【行动】时,要执行的行动组
public ActionSet? ActionSet { get; set; }
属性值
BreakName
自定义课间名称。应使用BreakNameText获取实际课间名称。
public string BreakName { get; set; }
属性值
BreakNameText
课间名称。
[JsonIgnore]
public string BreakNameText { get; }
属性值
DefaultClassId
默认科目ID
public string DefaultClassId { get; set; }
属性值
EndSecond
时间段在一天中结束的秒钟数
public DateTime EndSecond { get; set; }
属性值
IsHideDefault
是否默认隐藏
public bool IsHideDefault { get; set; }
属性值
Last
[JsonIgnore]
public TimeSpan Last { get; }
属性值
StartSecond
时间段在一天中开始的秒钟数
public DateTime StartSecond { get; set; }
属性值
TimeType
时间点类型
public int TimeType { get; set; }
属性值
- int
0 - 上课
1 - 课间
2 - 分割线
3 - 行动
方法
CompareTo(object?)
与另一个TimeLayoutItem比较
public int CompareTo(object? obj)
参数
obj
object要比较的对象