Method SetTextAttachmentType
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetTextAttachmentType(DxfTextAttachmentType, DxfLeaderDirectionType)
Sets where the leaders of a side meet the words, as AutoCAD's SetTextAttachmentType: the MULTILEADER's group of
the side and that of its context data, and the side's bit of the overrides. Where leaders meet the words on that side,
the words or the landings move as AutoCAD 2021 moves them, the words running along the plane: the left set, the words
move up by as much more as the left is met below their top, the leaders on the right with them; the right set, the
words move so where no leader meets them on the left, else the leaders on the right are landed lower by as much. Three
lines at (100, 50, 0) met on both sides at the middle of their top line, the left set to the bottom of the bottom line,
stand at (100, 65.33, 0), the dogleg on their right from (120.67, 63.33, 0). Attachment 8, the underline of every line,
underlines the words where a leader meets them on its side, as AutoCAD writes it: "ABC" becomes \LABC, words
that begin with \L or have no letters left; set away from it, \L is taken off the words again.
public void SetTextAttachmentType(DxfTextAttachmentType textAttachmentType, DxfLeaderDirectionType leaderDirection)
Parameters
textAttachmentTypeDxfTextAttachmentTypeWhere they meet.
leaderDirectionDxfLeaderDirectionTypeThe side.
Exceptions
- ArgumentException
Thrown when the side is not known.
- ArgumentOutOfRangeException
Thrown when the type is not one of DxfTextAttachmentType.
- InvalidOperationException
Thrown when the top or the bottom is set in a file older than R2010 (AC1024), or the MULTILEADER is erased.