Diagram.ActiveDiagramView (Propiedad)

obtiene la vista activa para el diagrama.

Espacio de nombres:  Microsoft.VisualStudio.Modeling.Diagrams
Ensamblado:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (en Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Sintaxis

'Declaración
Public ReadOnly Property ActiveDiagramView As DiagramView
public DiagramView ActiveDiagramView { get; }

Valor de propiedad

Tipo: Microsoft.VisualStudio.Modeling.Diagrams.DiagramView
la vista activa para el diagrama.

Ejemplos

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

Seguridad de .NET Framework

Vea también

Referencia

Diagram Clase

Microsoft.VisualStudio.Modeling.Diagrams (Espacio de nombres)