Table of Contents

Class DiagramDataBase

Namespace
H.Controls.Diagram.Presenter.DiagramDatas.Base
Assembly
H.Controls.Diagram.Presenter.dll
public abstract class DiagramDataBase : DisplayBindableBase, INotifyPropertyChanged, IDisplayBindable, IIconable, IOrderable, IDescriptionable, IDiagramData, ICloneable, IDable, INameable, IGroupable
Inheritance
DiagramDataBase
Implements
Derived
Inherited Members
Extension Methods

Constructors

DiagramDataBase()

public DiagramDataBase()

Properties

AlignmentCommand

[Icon("")]
[JsonIgnore]
[Display(Name = "对齐节点", GroupName = "操作", Order = 5)]
public virtual DisplayCommand AlignmentCommand { get; }

Property Value

DisplayCommand

ClearCommand

[Icon("")]
[Display(Name = "清空节点", GroupName = "操作", Order = 5, Description = "点击此功能,删除所有节点、连线和端口")]
public virtual DisplayCommand ClearCommand { get; }

Property Value

DisplayCommand

DataSource

[JsonIgnore]
public IDiagramDataSource DataSource { get; set; }

Property Value

IDiagramDataSource

Datas

public Datas Datas { get; }

Property Value

Datas

DeleteCheckedCommand

[Icon("")]
[Display(Name = "删除选中节点", GroupName = "操作", Order = 4, Description = "点击此功能,删除选中的所有节点")]
public virtual DisplayCommand DeleteCheckedCommand { get; }

Property Value

DisplayCommand

EditCommand

[Icon("")]
[Display(Name = "编辑面板", GroupName = "操作", Order = 0, Description = "点击此功能,编辑面板信息")]
public virtual DisplayCommand EditCommand { get; }

Property Value

DisplayCommand

Height

[Display(Name = "面板高度", GroupName = "基础信息", Order = 0)]
public double Height { get; set; }

Property Value

double

ItemsChangedCommand

public RelayCommand ItemsChangedCommand { get; }

Property Value

RelayCommand

Layout

[JsonIgnore]
[PropertyNameSourcePropertyItem(typeof(ComboBoxPropertyItem), "Layouts")]
[Display(Name = "布局方式", GroupName = "基础信息")]
public ILayout Layout { get; set; }

Property Value

ILayout

Layouts

[JsonIgnore]
[Browsable(false)]
public ObservableCollection<ILayout> Layouts { get; set; }

Property Value

ObservableCollection<ILayout>

LinkDrawer

[JsonIgnore]
[Display(Name = "连线样式", GroupName = "基础信息")]
[PropertyNameSourcePropertyItem(typeof(ComboBoxPropertyItem), "LinkDrawers")]
public ILinkDrawer LinkDrawer { get; set; }

Property Value

ILinkDrawer

LinkDrawers

[JsonIgnore]
[Browsable(false)]
public ObservableCollection<ILinkDrawer> LinkDrawers { get; set; }

Property Value

ObservableCollection<ILinkDrawer>

Location

public Point Location { get; set; }

Property Value

Point

Message

public string Message { get; set; }

Property Value

string

MouseDoubleClickCommand

public RelayCommand MouseDoubleClickCommand { get; }

Property Value

RelayCommand

Name

获取或设置对象的名称。

[Browsable(true)]
[Display(Name = "名称", Order = 0, GroupName = "基础信息")]
public override string Name { get; set; }

Property Value

string

NodeType

[JsonIgnore]
public Type NodeType { get; set; }

Property Value

Type

SelectedPartChangedCommand

public RelayCommand SelectedPartChangedCommand { get; }

Property Value

RelayCommand

SelectedPartData

[JsonIgnore]
public IPartData SelectedPartData { get; set; }

Property Value

IPartData

ShowCommand

[Icon("")]
[Display(Name = "查看面板", GroupName = "操作", Order = 0, Description = "点击此功能,编辑查看面板信息")]
public virtual DisplayCommand ShowCommand { get; }

Property Value

DisplayCommand

Width

[Display(Name = "面板宽度", GroupName = "基础信息", Order = 0)]
public double Width { get; set; }

Property Value

double

Methods

Clear()

public void Clear()

Clone()

public object Clone()

Returns

object

CreateDataSource()

protected virtual IDiagramDataSource CreateDataSource()

Returns

IDiagramDataSource

CreateLayousSource()

protected virtual IEnumerable<ILayout> CreateLayousSource()

Returns

IEnumerable<ILayout>

CreateLinkDrawerSource()

protected virtual IEnumerable<ILinkDrawer> CreateLinkDrawerSource()

Returns

IEnumerable<ILinkDrawer>

InvalidateDatas()

protected void InvalidateDatas()

OnDeserialized()

protected virtual void OnDeserialized()

OnDeserializedMethod(StreamingContext)

[OnDeserialized]
protected void OnDeserializedMethod(StreamingContext context)

Parameters

context StreamingContext

OnItemsChanged()

protected virtual void OnItemsChanged()

OnMouseDoubleClick(object)

protected virtual void OnMouseDoubleClick(object e)

Parameters

e object

OnSelectedPartChanged()

protected virtual void OnSelectedPartChanged()

OnSerializing()

protected virtual void OnSerializing()

OnSerializingMethod(StreamingContext)

[OnSerializing]
protected void OnSerializingMethod(StreamingContext context)

Parameters

context StreamingContext