Table of Contents

Method GetLeaderLineColor

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

GetLeaderLineColor(int)

Gets the colour of a leader line, as AutoCAD's GetLeaderLineColor: its own (group 92 of the line) where it overrides the multileader's (bit 2 of its 93), BYBLOCK where it does so with no 92, or where the line has no flags and its colour is not BYBLOCK, as ezdxf writes and Explode() draws such a line; else BYBLOCK, as AutoCAD 2021 reads a line of no colour of its own whatever the LeaderLineColor it is drawn in (check D38b): a new line of a multileader of green lines reads BYBLOCK, and is drawn green.

public DxfColor GetLeaderLineColor(int leaderLineIndex)

Parameters

leaderLineIndex int

The index of the line.

Returns

DxfColor

The colour.

Exceptions

ArgumentOutOfRangeException

Thrown when the MULTILEADER has no line of the index.