DPB1Class · Game state and actions

Element

A game-interface element. Inspect text, visibility, geometry and child elements; follow the individual members for their signatures and result types. Prefer a named panel wrapper when one is available.

Namespace: DreamPoeBot.Loki

public class Element
Reference: DPB1 0.3.29.56Compare the DPB2 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

1 declared here
Show all members

Text

PropertyLink ↗
public string Element.Text { get; }

Reads this element's label text. Returns null for empty or whitespace-only text. This is not a concatenation of the text in its children; use the search helper or inspect Children when the label is nested.

Value type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Examples for this member

Only examples explicitly associated with this declaration are shown.

Imports used by these examples
using System;
using System.Linq;
using DreamPoeBot.Loki.Game;
using DreamPoeBot.Loki.Game.Objects;
using DreamPoeBot.Loki.Bot;
using DreamPoeBot.Loki.Bot.Pathfinding;
using DreamPoeBot.Loki.Common;

Inspect a supplied UI element without clicking

public static void InspectElement(DreamPoeBot.Loki.Element element)
{
    if (element == null || !element.IsVisible)
        return;

    var text = element.Text;
    var children = element.Children;
    var childCount = children == null ? 0 : children.Count;
    // Use text and childCount in your own log or settings panel.
}

This is a helper, not a complete plugin. Supply an Element obtained from the UI you are inspecting; in DPB2 an object's Ui property is one possible source. Call on the bot thread, reacquire after an interface or area change, and do not assume every element contains text. No click or key press is sent.

DPB1 0.3.29.56 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.