public Element.Element()
Creates a new Element instance.
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 →public Element.Element()
Creates a new Element instance.
public Vector2i Element.CenterClickLocation()
Executes the center click location operation.
Returns: The Vector2i result.
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.
mindoublemaxdoubleReturns: The Vector2i result.
public string Element.Dump()
Executes the dump operation.
Returns: The string result.
public Element Element.FindPartialTextInElementChildrens(string text)
Finds partial text in element childrens using the supplied arguments.
textstringReturns: The Element result.
public Element Element.FindTextInElementChildrens(string text)
Finds text in element childrens using the supplied arguments.
textstringReturns: The Element result.
public Element Element.GetChildAtIndex(int index)
Returns child at index using the supplied arguments.
indexintReturns: The Element result.
public Element Element.GetChildFromIndices(params int[] indices)
Returns child from indices using the supplied arguments.
indicesint[]Returns: The Element result.
protected List<T> Element.GetChildren<T>() where T : Element, new()
Returns children.
Returns: The List<T> result.
public virtual RectangleF Element.GetClientRect()
Returns client rect.
Returns: The RectangleF result.
public Vector2 Element.GetParentPos()
Returns parent pos.
Returns: The Vector2 result.
public void Element.SetZoom(float zoom)
Sets zoom using the supplied arguments.
zoomfloatpublic void Element.ToggleVisibility()
Executes the toggle visibility operation.
public void Element.WriteVisibleFlag(int flag)
Writes visible flag using the supplied arguments.
flagintpublic long Element.ChildCount { get; }
Gets child count for Element.
public List<Element> Element.Children { get; }
Gets the children collection. Its element types are linked below.
public int Element.ControlType { get; }
Gets control type for Element.
public float Element.DeltaX { get; }
Gets delta x for Element.
public float Element.DeltaY { get; }
Gets delta y for Element.
public float Element.ElementZoom { get; }
Gets element zoom for Element.
public GuiControlType Element.GuiControlType { get; }
Gets gui control type for Element.
public float Element.Height { get; }
Gets height for Element.
public string Element.IdLabel { get; }
Gets id label for Element.
public bool Element.IsEnable { get; }
Whether this element is enable.
public bool Element.IsHighlightedByRegex { get; }
Whether this element is highlighted by regex.
public bool Element.IsItemTransparent { get; }
Whether this element is item transparent.
public bool Element.IsVisible { get; }
Whether this element is visible.
public bool Element.IsVisibleLocal { get; }
Whether this element is visible local.
public Element Element.Parent { get; }
Gets parent for Element.
public Element Element.Root { get; }
Gets root for Element.
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.