Class DxfHyperLinkCollection
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
The hyperlinks of an entity or a block, as AutoCAD's HyperLinkCollection: read from the extended data of the
application PE_URL of its object each time they are asked for, and written back into it by every change.
public sealed class DxfHyperLinkCollection : IEnumerable<DxfHyperLink>, IEnumerable
- Inheritance
-
DxfHyperLinkCollection
- Implements
- Inherited Members
- Extension Methods
Remarks
line.Hyperlinks.Add(new DxfHyperLink { Name = "https://example.com/B-12.pdf", Description = "Plate B-12" }) gives
the line the extended data 1001 PE_URL, 1000 https://example.com/B-12.pdf, 1002 {, 1000 Plate B-12, 1002 }, as
AutoCAD and ezdxf write it, and the table of applications the application PE_URL where it lacks it. The last hyperlink
taken out takes the application's data with it.
A hyperlink read from the collection is a copy: one changed is written by setting it back, links[0] = link.
The extended data a file gives in braces beyond the description and the sub-location, as AutoCAD's own flags, is read
past and not written again.
Properties
- Count
Gets how many hyperlinks there are, as AutoCAD's
Count.
- this[int]
Gets or sets a hyperlink, as AutoCAD's indexer: a copy of the one at an index; set, that one replaced and written.
Methods
- Add(DxfHyperLink)
Adds a hyperlink last, as AutoCAD's
Add.
- Clear()
Takes out every hyperlink, the extended data of PE_URL with them, as AutoCAD's
Clear.
- Contains(DxfHyperLink)
Gets whether there is a hyperlink of the same address, description and sub-location, as AutoCAD's
Contains.
- CopyTo(DxfHyperLink[], int)
Copies the hyperlinks into an array from an index of it, as AutoCAD's
CopyTo.
- GetEnumerator()
Gets an enumerator over copies of the hyperlinks, in their order.
- IndexOf(DxfHyperLink)
Gets the index of the first hyperlink of the same address, description and sub-location, as AutoCAD's
IndexOf.
- Insert(int, DxfHyperLink)
Puts a hyperlink in at an index, as AutoCAD's
Insert.
- Remove(DxfHyperLink)
Takes out the first hyperlink of the same address, description and sub-location, as AutoCAD's
Remove; nothing where there is none.
- RemoveAt(int)
Takes out the hyperlink at an index, as AutoCAD's
RemoveAt.