TimeLayout 类
- 程序集
- ClassIsland.Shared.dll
代表一个时间表
public class TimeLayout : AttachableSettingsObject, INotifyPropertyChanged, INotifyPropertyChanging
- 继承
-
TimeLayout
- 实现
- 继承成员
构造函数
TimeLayout()
初始化对象
public TimeLayout()
属性
IsActivated
时间表是否处于激活(正在使用)状态
[JsonIgnore]
public bool IsActivated { get; set; }
属性值
IsActivatedManually
时间表是否是被手动激活
[JsonIgnore]
public bool IsActivatedManually { get; set; }
属性值
Layouts
时间表内容
public ObservableCollection<TimeLayoutItem> Layouts { get; set; }
属性值
Name
时间表名称
public string Name { get; set; }
属性值
方法
InsertTimePoint(int, TimeLayoutItem)
在指定索引处插入时间点
public void InsertTimePoint(int index, TimeLayoutItem item)
参数
indexint插入时间点的索引
itemTimeLayoutItem要插入的时间点
RemoveTimePoint(TimeLayoutItem)
删除指定的时间点
public void RemoveTimePoint(TimeLayoutItem item)
参数
itemTimeLayoutItem要删除的时间点
事件
LayoutItemChanged
时间表元素被更改事件
public event EventHandler<TimeLayoutUpdateEventArgs>? LayoutItemChanged
事件类型
LayoutObjectChanged
时间表对象被更改事件
public event EventHandler? LayoutObjectChanged