Class Part
Node和Link的基类 Layer的Item子元素
public abstract class Part : ContentPresenter, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
- Inheritance
-
Part
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Part()
public Part()
Fields
DeleteCommand
public static RoutedUICommand DeleteCommand
Field Value
HasErrorProperty
public static readonly DependencyProperty HasErrorProperty
Field Value
IsCanDropProperty
设置是否放入有效区域并且验证可以放下的效果
public static readonly DependencyProperty IsCanDropProperty
Field Value
IsDragEnterProperty
是否拖入
public static readonly DependencyProperty IsDragEnterProperty
Field Value
IsSelectedProperty
public static readonly DependencyProperty IsSelectedProperty
Field Value
SelectionChangedRoutedEvent
public static readonly RoutedEvent SelectionChangedRoutedEvent
Field Value
StateProperty
public static readonly DependencyProperty StateProperty
Field Value
Properties
Bound
public Rect Bound { get; }
Property Value
HasError
public bool HasError { get; set; }
Property Value
IsSelected
public bool IsSelected { get; set; }
Property Value
State
public FlowableState State { get; set; }
Property Value
Methods
Clear()
清理逻辑关系
public virtual void Clear()
Delete()
删除图层上的元素
public virtual void Delete()
GetContent<T>()
public T GetContent<T>()
Returns
- T
Type Parameters
T
GetDiagram()
public Diagram GetDiagram()
Returns
GetIsCanDrop(DependencyObject)
public static bool GetIsCanDrop(DependencyObject d)
Parameters
Returns
GetIsDragEnter(DependencyObject)
public static bool GetIsDragEnter(DependencyObject d)
Parameters
Returns
GetNext()
public virtual Part GetNext()
Returns
GetPrevious()
public virtual Part GetPrevious()
Returns
OnSelectionChanged()
protected void OnSelectionChanged()
SetIsCanDrop(DependencyObject, bool)
public static void SetIsCanDrop(DependencyObject obj, bool value)
Parameters
obj
DependencyObjectvalue
bool
SetIsDragEnter(DependencyObject, bool)
public static void SetIsDragEnter(DependencyObject obj, bool value)
Parameters
obj
DependencyObjectvalue
bool
Events
SelectionChanged
public event RoutedEventHandler SelectionChanged