SingleDiagramDocView.Diagram Property

Gets a diagram.

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

Syntax

'Declaration
Public Property Diagram As Diagram
public Diagram Diagram { get; set; }
public:
property Diagram^ Diagram {
    Diagram^ get ();
    void set (Diagram^ value);
}
member Diagram : Diagram with get, set
function get Diagram () : Diagram 
function set Diagram (value : Diagram)

Property Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.Diagram
The diagram.

Remarks

If the view for the diagram does not exist, a view is created.

After the diagram is retrieved, the primary (first) shape in the diagram is selected.

.NET Framework Security

See Also

Reference

SingleDiagramDocView Class

Microsoft.VisualStudio.Modeling.Shell Namespace