Diagram.HasOutline Property

Gets the diagram and verifies whether it has an outline.

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

Syntax

'Declaration
Public Overrides ReadOnly Property HasOutline As Boolean
public override bool HasOutline { get; }
public:
virtual property bool HasOutline {
    bool get () override;
}
abstract HasOutline : bool with get 
override HasOutline : bool with get
override function get HasOutline () : boolean

Property Value

Type: Boolean
true if the diagram has an outline; otherwise, false.

Remarks

By default the return value is false.

Examples

if (this.HasOutline(geometryHost))
{
    Color oldColor = geometryHost.UpdateGeometryLuminosity(e.View, outLinePen);
    outLinePen.Color = oldColor;

}

.NET Framework Security

See Also

Reference

Diagram Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace