Diagram.CreatableSwimLaneSubjects 屬性

取得網域類別來區隔線圖形連結的清單。

命名空間:  Microsoft.VisualStudio.Modeling.Diagrams
組件:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)

語法

'宣告
Public Overridable ReadOnly Property CreatableSwimLaneSubjects As IEnumerable(Of DomainClassInfo)
public virtual IEnumerable<DomainClassInfo> CreatableSwimLaneSubjects { get; }

屬性值

型別:System.Collections.Generic.IEnumerable<DomainClassInfo>
區隔線圖形到連結的網域類別的清單。

範例

public override void CreateConnection(DslDiagrams::ShapeElement sourceShapeElement, DslDiagrams::ShapeElement targetShapeElement, DslDiagrams::PaintFeedbackArgs paintFeedbackArgs)
{
    System.Collections.Generic.Dictionary<object, object> contextInfo = sourceShapeElement.Store.TransactionManager.CurrentTransaction.Context.ContextInfo;
    DslDiagrams::MouseAction activeMouseAction = sourceShapeElement.Diagram.ActiveDiagramView.ActiveMouseAction;
    contextInfo.Add(Constant.MouseToPointKey, activeMouseAction.CurrentPoint);
    contextInfo.Add(Constant.MouseFromPointKey, activeMouseAction.MouseDownPoint);                               

    base.CreateConnection(sourceShapeElement, targetShapeElement, paintFeedbackArgs);
}

.NET Framework 安全性

請參閱

參考

Diagram 類別

Microsoft.VisualStudio.Modeling.Diagrams 命名空間