Diagram.HasOutline Property
Gets the diagram and verifies whether it has an outline.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'Declaration
Public Overrides ReadOnly Property HasOutline As Boolean
'Usage
Dim instance As Diagram
Dim value As Boolean
value = instance.HasOutline
public override bool HasOutline { get; }
public:
virtual property bool HasOutline {
bool get () override;
}
public 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.