Table of Contents

TimeLayout 类

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

代表一个时间表

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

构造函数

TimeLayout()

初始化对象

public TimeLayout()

属性

IsActivated

时间表是否处于激活(正在使用)状态

[JsonIgnore]
public bool IsActivated { get; set; }

属性值

bool

IsActivatedManually

时间表是否是被手动激活

[JsonIgnore]
public bool IsActivatedManually { get; set; }

属性值

bool

Layouts

时间表内容

public ObservableCollection<TimeLayoutItem> Layouts { get; set; }

属性值

ObservableCollection<TimeLayoutItem>

Name

时间表名称

public string Name { get; set; }

属性值

string

方法

InsertTimePoint(int, TimeLayoutItem)

在指定索引处插入时间点

public void InsertTimePoint(int index, TimeLayoutItem item)

参数

index int

插入时间点的索引

item TimeLayoutItem

要插入的时间点

RemoveTimePoint(TimeLayoutItem)

删除指定的时间点

public void RemoveTimePoint(TimeLayoutItem item)

参数

item TimeLayoutItem

要删除的时间点

事件

LayoutItemChanged

时间表元素被更改事件

public event EventHandler<TimeLayoutUpdateEventArgs>? LayoutItemChanged

事件类型

EventHandler<TimeLayoutUpdateEventArgs>

LayoutObjectChanged

时间表对象被更改事件

public event EventHandler? LayoutObjectChanged

事件类型

EventHandler