Share via


Diagram.SupportsPorts Property

Gets the diagram and verifies whether it contains ports.

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

Syntax

'Declaration
Public Overridable ReadOnly Property SupportsPorts As Boolean
'Usage
Dim instance As Diagram 
Dim value As Boolean 

value = instance.SupportsPorts
public virtual bool SupportsPorts { get; }
public:
virtual property bool SupportsPorts {
    bool get ();
}
public function get SupportsPorts () : boolean

Property Value

Type: System.Boolean
true if the diagram contains ports; otherwise, false.

Remarks

By default, the return value is false.

Hit testing does not check for ports if the diagram does not contain ports.

.NET Framework Security

See Also

Reference

Diagram Class

Diagram Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace