Aracılığıyla paylaş


Diagram.ActiveDiagramView Özellik

Etkin görünüm diyagramı alır.

Ad alanı:  Microsoft.VisualStudio.Modeling.Diagrams
Derleme:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll içinde)

Sözdizimi

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

Özellik Değeri

Tür: Microsoft.VisualStudio.Modeling.Diagrams.DiagramView
Diyagram için etkin görünüm.

Örnekler

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 Güvenliği

Ayrıca bkz.

Başvuru

Diagram Sınıf

Microsoft.VisualStudio.Modeling.Diagrams Ad Alanı