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
'宣告
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
- 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.