DPB1Class · Game state and actions

Element

Describe properties of a Ui Element, like its position (X,Y), size (Width,Height), scale (Scale), and many other properties. The whole Game user interface, is a `Matrioska` of Elements and childs element. You usually dont need to care about this informations, the LokiPoe.IngameState, offer convenient wrappers for all the implemented interfaces.

Namespace: DreamPoeBot.Loki

public class ElementView DPB2 version →

Members and overloads

40 results

Element

MethodLink ↗
public Element.Element()

Creates a new Element instance.

CenterClickLocation

MethodLink ↗
public Vector2i Element.CenterClickLocation()

Executes the center click location operation.

Returns: The Vector2i result.

CenterClickLocation

MethodLink ↗
public Vector2i Element.CenterClickLocation(double min = 0.20000000298023224, double max = 0.800000011920929)

Return a random position inside the element boundry. min and max are used to reduce the search area, use 0,0 to get the perfect center.

mindouble
a value between 1 and 0 multiplayed width and height to reduce the search boundry
maxdouble
a value between 1 and 0 multiplayed width and height to reduce the search boundry

Returns: The Vector2i result.

Dump

MethodLink ↗
public string Element.Dump()

Executes the dump operation.

Returns: The string result.

FindPartialTextInElementChildrens

MethodLink ↗
public Element Element.FindPartialTextInElementChildrens(string text)

Finds partial text in element childrens using the supplied arguments.

textstring
Specifies text.

Returns: The Element result.

FindTextInElementChildrens

MethodLink ↗
public Element Element.FindTextInElementChildrens(string text)

Finds text in element childrens using the supplied arguments.

textstring
Specifies text.

Returns: The Element result.

GetChildAtIndex

MethodLink ↗
public Element Element.GetChildAtIndex(int index)

Returns child at index using the supplied arguments.

indexint
Specifies index.

Returns: The Element result.

GetChildFromIndices

MethodLink ↗
public Element Element.GetChildFromIndices(params int[] indices)

Returns child from indices using the supplied arguments.

indicesint[]
Specifies indices.

Returns: The Element result.

GetChildren

MethodLink ↗
protected List<T> Element.GetChildren<T>() where T : Element, new()

Returns children.

Returns: The List<T> result.

GetClientRect

MethodLink ↗
public virtual RectangleF Element.GetClientRect()

Returns client rect.

Returns: The RectangleF result.

GetParentPos

MethodLink ↗
public Vector2 Element.GetParentPos()

Returns parent pos.

Returns: The Vector2 result.

SetZoom

MethodLink ↗
public void Element.SetZoom(float zoom)

Sets zoom using the supplied arguments.

zoomfloat
Specifies zoom.

ToggleVisibility

MethodLink ↗
public void Element.ToggleVisibility()

Executes the toggle visibility operation.

WriteVisibleFlag

MethodLink ↗
public void Element.WriteVisibleFlag(int flag)

Writes visible flag using the supplied arguments.

flagint
Specifies flag.

ChildCount

PropertyLink ↗
public long Element.ChildCount { get; }

Gets child count for Element.

Children

PropertyLink ↗
public List<Element> Element.Children { get; }

Gets the children collection. Its element types are linked below.

ControlType

PropertyLink ↗
public int Element.ControlType { get; }

Gets control type for Element.

DeltaX

PropertyLink ↗
public float Element.DeltaX { get; }

Gets delta x for Element.

DeltaY

PropertyLink ↗
public float Element.DeltaY { get; }

Gets delta y for Element.

ElementZoom

PropertyLink ↗
public float Element.ElementZoom { get; }

Gets element zoom for Element.

GuiControlType

PropertyLink ↗
public GuiControlType Element.GuiControlType { get; }

Gets gui control type for Element.

Height

PropertyLink ↗
public float Element.Height { get; }

Gets height for Element.

IdLabel

PropertyLink ↗
public string Element.IdLabel { get; }

Gets id label for Element.

IsEnable

PropertyLink ↗
public bool Element.IsEnable { get; }

Whether this element is enable.

IsHighlightedByRegex

PropertyLink ↗
public bool Element.IsHighlightedByRegex { get; }

Whether this element is highlighted by regex.

IsItemTransparent

PropertyLink ↗
public bool Element.IsItemTransparent { get; }

Whether this element is item transparent.

IsVisible

PropertyLink ↗
public bool Element.IsVisible { get; }

Whether this element is visible.

IsVisibleLocal

PropertyLink ↗
public bool Element.IsVisibleLocal { get; }

Whether this element is visible local.

Parent

PropertyLink ↗
public Element Element.Parent { get; }

Gets parent for Element.

Root

PropertyLink ↗
public Element Element.Root { get; }

Gets root for Element.

Related types

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