Table of Contents

Class CadHyperlinkRequest

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

The Insert Hyperlink and Edit Hyperlink dialog of HYPERLINK, as data its command and the window share: what the link goes to and the text it is shown by. Where an object selected has a hyperlink the dialog is Edit Hyperlink and starts from the first one found; OK then makes that the only hyperlink of every object selected, and Remove Link takes every hyperlink from them. Where none has one, OK adds it.

public sealed class CadHyperlinkRequest
Inheritance
CadHyperlinkRequest
Inherited Members

Properties

Action

Gets or sets what the dialog was closed with; Cancel until set.

Address

Gets or sets the file or web page, plans\B-12.pdf or https://example.com (Existing File or Web Page).

EmailAddress

Gets or sets the e-mail address (E-mail Address).

IsEdit

Gets whether an object selected has a hyperlink: the dialog is Edit Hyperlink, with Remove Link, rather than Insert Hyperlink.

Kind

Gets or sets what the link goes to; an existing file or web page until set.

Location

Gets or sets the named place in the file or page (the dialog's Target); empty for none.

ObjectCount

Gets how many objects the hyperlink is for.

Remove

Gets or sets whether Remove Link was pressed: every hyperlink of the objects is taken out and nothing is written.

Subject

Gets or sets the subject of the mail (E-mail Address); empty for none.

TextToDisplay

Gets or sets the text to display, which the object's tooltip shows; empty to show the address.

Title

Gets the title of the dialog: "Edit Hyperlink" or "Insert Hyperlink".

ViewName

Gets or sets the view of the drawing (View of This Drawing).

Views

Gets the names of the views of the drawing, in ordinal order, for View of This Drawing.

Methods

ToString()
TryBuild(out DxfHyperLink, out string)

Makes the hyperlink the dialog stands for. A file or web page needs an address, a view a view of the drawing, a mail an address; an address, text or place longer than 255 characters is refused with AutoCAD's words.