Partilhar via


Propriedade Diagram.ActiveDiagramView

Obtém o modo de exibição ativo para o diagrama.

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

Sintaxe

'Declaração
Public ReadOnly Property ActiveDiagramView As DiagramView
public DiagramView ActiveDiagramView { get; }

Valor de propriedade

Tipo: Microsoft.VisualStudio.Modeling.Diagrams.DiagramView
O modo de exibição ativo para o diagrama.

Exemplos

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

Segurança do .NET Framework

Consulte também

Referência

Diagram Classe

Namespace Microsoft.VisualStudio.Modeling.Diagrams