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
[JsonConverter(typeof(GuidEmptyFallbackConverter))]
public Guid DefaultClassId { get; set; }
属性值
EndSecond
时间段在一天中结束的秒钟数
[Obsolete("请使用 EndTime 属性。", true)]
public string EndSecond { get; set; }
属性值
EndTime
时间点在一天中结束的时间
public TimeSpan EndTime { get; set; }
属性值
IsHideDefault
是否默认隐藏
public bool IsHideDefault { get; set; }
属性值
Last
时间点持续时间
[JsonIgnore]
public TimeSpan Last { get; }
属性值
StartSecond
时间段在一天中开始的秒钟数
[Obsolete("请使用 StartTime 属性。", true)]
public string StartSecond { get; set; }
属性值
StartTime
时间点在一天中开始的时间
public TimeSpan StartTime { get; set; }
属性值
TimeType
时间点类型
public int TimeType { get; set; }
属性值
- int
0 - 上课
1 - 课间
2 - 分割线
3 - 行动
方法
CompareTo(object?)
与另一个TimeLayoutItem比较
public int CompareTo(object? obj)
参数
objobject要比较的对象
返回
ToString()
Returns a string that represents the current object.
public override string ToString()
返回
- string
A string that represents the current object.