Back to Devexpress

Brick.AnchorName Property

corelibraries-devexpress-dot-xtraprinting-dot-brick-9df377f5.md

latest2.7 KB
Original Source

Brick.AnchorName Property

Gets or sets an anchor name assigned to the Brick object.

Namespace : DevExpress.XtraPrinting

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue("")]
public string AnchorName { get; set; }
vb
<DefaultValue("")>
Public Property AnchorName As String

Property Value

TypeDefaultDescription
StringString.Empty

A String value.

|

Remarks

Use this property to specify a name attribute of the anchor tag when exporting a document into HTML: <a name=”# AnchorName “> </a>. The brick becomes an anchor with the name attribute set, preceded by a number sign ‘ # ‘, and acts as a bookmark or a link target for the browser.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AnchorName property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-winforms-custom-table-of-contents/CS/CustomTableOfContents/Form1.cs#L66

csharp
if (target != null) {
    target.Brick.AnchorName = key;
    link.Url = key;

reporting-winforms-custom-table-of-contents/VB/CustomTableOfContents/Form1.vb#L60

vb
If target IsNot Nothing Then
    target.Brick.AnchorName = key
    link.Url = key

See Also

Brick Class

Brick Members

DevExpress.XtraPrinting Namespace