Condividi tramite


Proprietà Diagram.ActiveDiagramView

ottiene la visualizzazione attiva per il diagramma.

Spazio dei nomi:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Sintassi

'Dichiarazione
Public ReadOnly Property ActiveDiagramView As DiagramView
public DiagramView ActiveDiagramView { get; }

Valore proprietà

Tipo: Microsoft.VisualStudio.Modeling.Diagrams.DiagramView
la visualizzazione attiva per il diagramma.

Esempi

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);
}

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Diagram Classe

Spazio dei nomi Microsoft.VisualStudio.Modeling.Diagrams