Table of Contents

Class DxfHyperLink

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

A hyperlink of an entity or a block, as AutoCAD's HyperLink: the address it opens, the text it is shown by, and the place in the target it opens at, kept in the extended data of the application PE_URL.

public sealed class DxfHyperLink
Inheritance
DxfHyperLink
Inherited Members

new DxfHyperLink { Name = "https://example.com/B-12.pdf", Description = "Plate B-12" } added to an entity's Hyperlinks is written as AutoCAD writes it: the address as a 1000, then between braces (1002) the description as a 1000 and the sub-location as another where there is one.

Properties

Description

Gets or sets the text the hyperlink is shown by, as AutoCAD's Description; empty where it has none.

DisplayString

Gets what AutoCAD shows for the hyperlink, as its DisplayString: the description, or the address where there is none.

IsOutermostContainer

Gets whether the hyperlink is of the outermost object, as AutoCAD's IsOutermostContainer: true, the hyperlink of the object itself.

Name

Gets or sets the address the hyperlink opens, as AutoCAD's Name: a web address or a file; empty for one made with none.

NestedLevel

Gets how deep in blocks the hyperlink's owner is, as AutoCAD's NestedLevel: nought, the hyperlink of the object itself.

SubLocation

Gets or sets the place in the target the hyperlink opens at, as AutoCAD's SubLocation: a named view, a layout; empty where it has none.

Methods

ToString()

Gives the hyperlink as a line for debugging: what is shown for it and its address.