TX Text Control .NET for Windows Forms

BookmarkDialog Constructor

Constructor|Introduced in 23.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Creates a BookmarkDialog object for the specified Windows Forms TextControl.

Syntax

BookmarkDialog(TextControl)

Creates a BookmarkDialog object for the specified Windows Forms TextControl. If there is a target at the current input position, the name of the target is shown and can be edited. Otherwise a new DocumentTarget can be inserted at the current input position.

public BookmarkDialog(TextControl textControl);
ParameterDescription
textControl

Specifies the TextControl for which the dialog box is opened.

BookmarkDialog(TextControl, DocumentTarget)

Creates a BookmarkDialog object for the specified Windows Forms TextControl. If the specified DocumentTarget is not null, the name of the target is shown and can be edited. Otherwise a new DocumentTarget can be inserted at the current input position.

public BookmarkDialog(TextControl textControl, DocumentTarget bookmarkToEdit);
ParameterDescription
textControl

Specifies the TextControl for which the dialog box is opened.

bookmarkToEdit

Specifies the DocumentTarget to edit.

Examples

The following example creates a Bookmark Dialog instance and configures its allow transparency setting for a document workflow.

using BookmarkDialog bookmarkDialog = new(new TextControl());
bookmarkDialog.AllowTransparency = true;