GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
Loading...
Searching...
No Matches
IGPALAutomationElement.cs
1// =============================================================================
2// GPAL - Generally Positive Automation Library
3// Copyright © 2026 Software Decisions, Inc. All rights reserved.
4//
5// This file is part of GPAL.
6// Licensed under the Business Source License 1.1
7//
8// Primary development, architecture, and vision by Michael B. Vederman,
9// CEO of Software Decisions, Inc., Texas.
10//
11// Internal development maintained privately.
12// Public releases appear on GitHub: https://github.com/SoftwareDecisionsInc/GPAL.
13//
14// See LICENSE for full terms, including Additional Use Grant.
15// =============================================================================
16
17//extern alias mUIA;
18using System.Windows.Automation;
19
21{
22 public interface IGPALAutomationElement
23 {
24 AutomationElement Ae { get; set; }
25 IGPALElement Gae { get; set; }
26 // mUIA.System.Windows.Automation.AutomationElement Mae { get; set; }
27
28 // the same properties a page element carries, spelled the same way, so a workflow reading an element
29 // in a handler asks the same questions of a window as it does of a page
31 bool Selected { get; }
32
34 bool? Checked { get; }
35
37 bool Enabled { get; }
38
40 bool Displayed { get; }
41
43 string Text { get; }
44
46 string TagName { get; }
47
49 string Name { get; }
50
52 System.Drawing.Point Location { get; }
53
55 System.Drawing.Size Size { get; }
56 }
57}
System.Drawing.Size Size
Dimensions of the element.
bool? Checked
A checkbox's three states: true ticked, false clear, null for the third one.
System.Drawing.Point Location
Screen coordinates of the element.
string Name
The element's name, which is how a window labels a control.
bool Selected
Whether the element is selected, the same question GPALElement.Selected answers on a page.
string TagName
What kind of control this is, which is a window's answer to a tag name.