Diagram.CreatableSwimLaneSubjects Property

Gets the list of domain classes that are linked to swimlane shapes.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property CreatableSwimLaneSubjects As IEnumerable(Of DomainClassInfo)
public virtual IEnumerable<DomainClassInfo> CreatableSwimLaneSubjects { get; }
public:
virtual property IEnumerable<DomainClassInfo^>^ CreatableSwimLaneSubjects {
    IEnumerable<DomainClassInfo^>^ get ();
}
abstract CreatableSwimLaneSubjects : IEnumerable<DomainClassInfo> with get 
override CreatableSwimLaneSubjects : IEnumerable<DomainClassInfo> with get
function get CreatableSwimLaneSubjects () : IEnumerable<DomainClassInfo>

Property Value

Type: IEnumerable<DomainClassInfo>
The list of domain classes that are linked to swimlane shapes.

Examples

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 Security

See Also

Reference

Diagram Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace