Compartir a través de


Diagram.HasOutline Property

Gets the diagram and verifies whether it has an outline.

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

Syntax

'Declaración
Public Overrides ReadOnly Property HasOutline As Boolean
    Get
public override bool HasOutline { get; }
public:
virtual property bool HasOutline {
    bool get () override;
}
abstract HasOutline : bool
override HasOutline : bool
override function get HasOutline () : boolean

Property Value

Type: System.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