# FlaUI 库模块帮助文档

<details>  <summary>入门教程</summary>  <p>
[入门教程](https://mp.weixin.qq.com/s/uEJSete63SQgJYEHw2PacQ)
</p></details>

## FlaUI 成员列表 <a id="FlaUI" href="#FlaUI">&#x23;</a>

.NET 组件 FlaUI。  
在 aardio 中 FlaUI 与 FlaUI.Core 指向同一命名空间。  
注意首字母大写常用于 .NET 命名空间，而 aardio 命名空间通常小写首字母。  

此组件库已自动导入 key,mouse 库

### FlaUI.As("Button",) <a id="FlaUI.As" href="#FlaUI.As">&#x23;</a>
转换为指定类型的控件对象。  
参数 @1 指定控件类名，参数 @2 指定界面节点对象

### FlaUI.AsButton() <a id="FlaUI.AsButton" href="#FlaUI.AsButton">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.Button控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

[返回对象:FlaUIButtonObject](#FlaUIButtonObject)

### FlaUI.AsCalendar() <a id="FlaUI.AsCalendar" href="#FlaUI.AsCalendar">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.Calendar控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsCheckBox() <a id="FlaUI.AsCheckBox" href="#FlaUI.AsCheckBox">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.CheckBox控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

[返回对象:FlaUICheckBoxObject](#FlaUICheckBoxObject)

### FlaUI.AsComboBox() <a id="FlaUI.AsComboBox" href="#FlaUI.AsComboBox">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.ComboBox控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsDataGridView() <a id="FlaUI.AsDataGridView" href="#FlaUI.AsDataGridView">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.DataGridView控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsDateTimePicker() <a id="FlaUI.AsDateTimePicker" href="#FlaUI.AsDateTimePicker">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.DateTimePicker控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsGrid() <a id="FlaUI.AsGrid" href="#FlaUI.AsGrid">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.Grid控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsGridCell() <a id="FlaUI.AsGridCell" href="#FlaUI.AsGridCell">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.GridCell控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsGridHeader() <a id="FlaUI.AsGridHeader" href="#FlaUI.AsGridHeader">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.GridHeader控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsGridHeaderItem() <a id="FlaUI.AsGridHeaderItem" href="#FlaUI.AsGridHeaderItem">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.GridHeaderItem控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsGridRow() <a id="FlaUI.AsGridRow" href="#FlaUI.AsGridRow">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.GridRow控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsHorizontalScrollBar() <a id="FlaUI.AsHorizontalScrollBar" href="#FlaUI.AsHorizontalScrollBar">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.HorizontalScrollBar控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsLabel() <a id="FlaUI.AsLabel" href="#FlaUI.AsLabel">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.Label控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

[返回对象:FlaUILabelObject](#FlaUILabelObject)

### FlaUI.AsListBox() <a id="FlaUI.AsListBox" href="#FlaUI.AsListBox">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.ListBox控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsListBoxItem() <a id="FlaUI.AsListBoxItem" href="#FlaUI.AsListBoxItem">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.ListBoxItem控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsMenu() <a id="FlaUI.AsMenu" href="#FlaUI.AsMenu">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.Menu控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsMenuItem() <a id="FlaUI.AsMenuItem" href="#FlaUI.AsMenuItem">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.MenuItem控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsProgressBar() <a id="FlaUI.AsProgressBar" href="#FlaUI.AsProgressBar">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.ProgressBar控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsRadioButton() <a id="FlaUI.AsRadioButton" href="#FlaUI.AsRadioButton">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.RadioButton控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

[返回对象:FlaUIRadioButtonObject](#FlaUIRadioButtonObject)

### FlaUI.AsSlider() <a id="FlaUI.AsSlider" href="#FlaUI.AsSlider">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.Slider控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsSpinner() <a id="FlaUI.AsSpinner" href="#FlaUI.AsSpinner">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.Spinner控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsTab() <a id="FlaUI.AsTab" href="#FlaUI.AsTab">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.Tab控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsTabItem() <a id="FlaUI.AsTabItem" href="#FlaUI.AsTabItem">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.TabItem控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsTextBox() <a id="FlaUI.AsTextBox" href="#FlaUI.AsTextBox">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.TextBox控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

[返回对象:FlaUITextBoxObject](#FlaUITextBoxObject)

### FlaUI.AsThumb() <a id="FlaUI.AsThumb" href="#FlaUI.AsThumb">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.Thumb控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsTitleBar() <a id="FlaUI.AsTitleBar" href="#FlaUI.AsTitleBar">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.TitleBar控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsToggleButton() <a id="FlaUI.AsToggleButton" href="#FlaUI.AsToggleButton">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.ToggleButton控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsTree() <a id="FlaUI.AsTree" href="#FlaUI.AsTree">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.Tree控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsTreeItem() <a id="FlaUI.AsTreeItem" href="#FlaUI.AsTreeItem">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.TreeItem控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsVerticalScrollBar() <a id="FlaUI.AsVerticalScrollBar" href="#FlaUI.AsVerticalScrollBar">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.VerticalScrollBar控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.AsWindow() <a id="FlaUI.AsWindow" href="#FlaUI.AsWindow">&#x23;</a>
将参数 @1 指定的 UIA 节点转换为 FlaUI.AutomationElements.Window控件。  
返回控件的属性与方法请参考 FlaUI 文档或源码

### FlaUI.Attach() <a id="FlaUI.Attach" href="#FlaUI.Attach">&#x23;</a>
绑定已运行的进程， FlaUI.Application 对象。  
参数@1可以用字符串指定执行文件名，也可以用数值指定进程 ID。  
此函数等价于 FlaUI.Application.Attach 函数

[返回对象:FlaUIAppObject](#FlaUIAppObject)

[返回对象:FlaUIAppObject](#FlaUIAppObject)

### FlaUI.By() <a id="FlaUI.By" href="#FlaUI.By">&#x23;</a>
[返回对象:FlaUIConditionObject](#FlaUIConditionObject)

### FlaUI.By(condition) <a id="FlaUI.By" href="#FlaUI.By">&#x23;</a>

```aardio
FlaUI.By(  
	ControlType = "Edit";  
	Name = "输入";/*创建节点搜索条件。  
表参数@1 中每个键值对指定一个匹配条件，多个条件为 And 关系。  
返回对象提供 And,Or,Not 函数，  
And,Or 可以此函数创建的其他搜索条件对象作为参数*/  
)
```

### FlaUI.Definitions <a id="FlaUI.Definitions" href="#FlaUI.Definitions">&#x23;</a>
类型定义。  
参考 https://github.com/FlaUI/FlaUI/tree/master/src/FlaUI.Core/Definitions

### FlaUI.DrawHighlight() <a id="FlaUI.DrawHighlight" href="#FlaUI.DrawHighlight">&#x23;</a>
高亮参数@1指定的界面节点对象。  
这个函数很卡，建议改用 aardio 提供的 win.ui.mask

### FlaUI.FindWindow <a id="FlaUI.FindWindow" href="#FlaUI.FindWindow">&#x23;</a>
查找窗口对象

### FlaUI.FindWindow() <a id="FlaUI.FindWindow" href="#FlaUI.FindWindow">&#x23;</a>
[返回对象:FlaUIElementObject](#FlaUIElementObject)

### FlaUI.FindWindow(进程,窗口类名,标题,超时) <a id="FlaUI.FindWindow" href="#FlaUI.FindWindow">&#x23;</a>
所有参数可选（至少指定一个查找条件）。  
参数@1可指定 process 对象、进程ID、EXE文件名、EXE路径。  
窗口类名、标题都支持模式匹配语法。  
超时可选指定一个单位为毫秒的数值

### FlaUI.FromHwnd() <a id="FlaUI.FromHwnd" href="#FlaUI.FromHwnd">&#x23;</a>
自参数@1指定的窗口句柄获取节点

[返回对象:FlaUIElementObject](#FlaUIElementObject)

### FlaUI.FromPoint() <a id="FlaUI.FromPoint" href="#FlaUI.FromPoint">&#x23;</a>
[返回对象:FlaUIElementObject](#FlaUIElementObject)

### FlaUI.FromPoint(parentNode,x,y) <a id="FlaUI.FromPoint" href="#FlaUI.FromPoint">&#x23;</a>
自 @x,@y 参数指定的坐标查找并返回节点。  
@parentNode 参数指定父节点或 FlaUI.GetMainWindow 等函数返回的窗口对象

### FlaUI.Launch <a id="FlaUI.Launch" href="#FlaUI.Launch">&#x23;</a>
运行进程并返回 FlaUI.Application 对象

### FlaUI.Launch() <a id="FlaUI.Launch" href="#FlaUI.Launch">&#x23;</a>
[返回对象:FlaUIAppObject](#FlaUIAppObject)

[返回对象:FlaUIAppObject](#FlaUIAppObject)

### FlaUI.Launch(executable,arguments) <a id="FlaUI.Launch" href="#FlaUI.Launch">&#x23;</a>
字符串参数 @executable 指定执行程序路径。  
可选用字符串 @arguments 指定启动参数。  
如果参数 @1 为字符串，此函数调用 aardio 标准库 procsss 启动进程。  
可传入更多 process 支持的构造参数

### FlaUI.Launch(startInfo) <a id="FlaUI.Launch" href="#FlaUI.Launch">&#x23;</a>
参数 @startInfo 可指定 System.Diagnostics.ProcessStartInfo 对象

### FlaUI.LaunchStoreApp(appUserModelId,arguments) <a id="FlaUI.LaunchStoreApp" href="#FlaUI.LaunchStoreApp">&#x23;</a>
运行 UWP 应用。  
此函数等价于 FlaUI.Application.LaunchStoreApp 函数

### FlaUI.enum <a id="FlaUI.enum" href="#FlaUI.enum">&#x23;</a>

```aardio
FlaUI.enum(parentNode,function(flaUiNode,flaUiParent,index,level){
	/*枚举 @parentNode 节点下面的所有后代节点。  
返回 true 继续枚举子节点，返回 false 忽略子节点。  
返回 null 退出枚举*/
}
```

## FlaUI.ControlType 成员列表 <a id="FlaUI.ControlType" href="#FlaUI.ControlType">&#x23;</a>

控件类型。  
参考 https://github.com/FlaUI/FlaUI/blob/master/src/FlaUI.Core/Definitions/ControlType.cs

### FlaUI.ControlType.Button <a id="FlaUI.ControlType.Button" href="#FlaUI.ControlType.Button">&#x23;</a>
按钮

### FlaUI.ControlType.Edit <a id="FlaUI.ControlType.Edit" href="#FlaUI.ControlType.Edit">&#x23;</a>
文本框

## FlaUI.Debug 成员列表 <a id="FlaUI.Debug" href="#FlaUI.Debug">&#x23;</a>

### FlaUI.Debug.GetXPathToElement <a id="FlaUI.Debug.GetXPathToElement" href="#FlaUI.Debug.GetXPathToElement">&#x23;</a>
获取节点的 XPath 路径

### FlaUI.Debug.GetXPathToElement(node,root) <a id="FlaUI.Debug.GetXPathToElement" href="#FlaUI.Debug.GetXPathToElement">&#x23;</a>
参数@node 指定当前节点。  
可选用 @root 参数指定根节点

## FlaUI.Input.Mouse 成员列表 <a id="FlaUI.Input.Mouse" href="#FlaUI.Input.Mouse">&#x23;</a>

### FlaUI.Input.Mouse.Position <a id="FlaUI.Input.Mouse.Position" href="#FlaUI.Input.Mouse.Position">&#x23;</a>
当前鼠标位置。  
System.Drawing.Point 对象

## FlaUI.UIA 成员列表 <a id="FlaUI.UIA" href="#FlaUI.UIA">&#x23;</a>

如果导入 FlaUI.UIA3 则指向 FlaUI.UIA3。  
如果未导入 FlaUI.UIA3 ，但导入 FlaUI.UIA2 ，则指向 FlaUI.UIA2

如果导入 FlaUI.UIA3 则指向 FlaUI.UIA3。  
如果未导入 FlaUI.UIA3 ，但导入 FlaUI.UIA2 ，则指向 FlaUI.UIA2

### FlaUI.UIA.FindWindow <a id="FlaUI.UIA.FindWindow" href="#FlaUI.UIA.FindWindow">&#x23;</a>
查找窗口对象

### FlaUI.UIA.FindWindow() <a id="FlaUI.UIA.FindWindow" href="#FlaUI.UIA.FindWindow">&#x23;</a>
[返回对象:FlaUIElementObject](#FlaUIElementObject)

### FlaUI.UIA.FindWindow(进程,窗口类名,标题,超时) <a id="FlaUI.UIA.FindWindow" href="#FlaUI.UIA.FindWindow">&#x23;</a>
所有参数可选（至少指定一个查找条件）。  
参数@1可指定 process 对象、进程ID、EXE文件名、EXE路径。  
窗口类名、标题都支持模式匹配语法。  
超时可选指定一个单位为毫秒的数值

### FlaUI.UIA.UIAAutomation <a id="FlaUI.UIA.UIAAutomation" href="#FlaUI.UIA.UIAAutomation">&#x23;</a>
如果导入 FlaUI.UIA3 则此函数实际指向 FlaUI.UIA3.UIA3Automation。  
如果未导入 FlaUI.UIA3 ，但导入 FlaUI.UIA2 ，则指向 FlaUI.UIA2.UIA2Automation。

### FlaUI.UIA.UIAAutomation() <a id="FlaUI.UIA.UIAAutomation" href="#FlaUI.UIA.UIAAutomation">&#x23;</a>
创建 UIAAutomation 对象。  

[返回对象:FlaUIA3AutomationObject](#FlaUIA3AutomationObject)

## FlaUIAppObject 成员列表 <a id="FlaUIAppObject" href="#FlaUIAppObject">&#x23;</a>

### FlaUIAppObject.Close() <a id="FlaUIAppObject.Close" href="#FlaUIAppObject.Close">&#x23;</a>
关闭进程。  
如果参数 @1 为 true ，则在关闭失败时杀除进程

### FlaUIAppObject.CloseTimeout <a id="FlaUIAppObject.CloseTimeout" href="#FlaUIAppObject.CloseTimeout">&#x23;</a>
关闭超时。  
System.TimeSpan 对象

### FlaUIAppObject.ExitCode <a id="FlaUIAppObject.ExitCode" href="#FlaUIAppObject.ExitCode">&#x23;</a>
退出代码

### FlaUIAppObject.GetAllTopLevelWindows() <a id="FlaUIAppObject.GetAllTopLevelWindows" href="#FlaUIAppObject.GetAllTopLevelWindows">&#x23;</a>
获取包含该进程内所有顶层窗口节点的数组。  
参数@1应指定 FlaUI.UIA3.UIA3Automation 或 FlaUI.UIA2.UIA2Automation 创建的对象

### FlaUIAppObject.GetMainWindow <a id="FlaUIAppObject.GetMainWindow" href="#FlaUIAppObject.GetMainWindow">&#x23;</a>
获取主窗口节点。

### FlaUIAppObject.GetMainWindow() <a id="FlaUIAppObject.GetMainWindow" href="#FlaUIAppObject.GetMainWindow">&#x23;</a>
[返回对象:FlaUIElementObject](#FlaUIElementObject)

### FlaUIAppObject.GetMainWindow(automation,waitTimeout) <a id="FlaUIAppObject.GetMainWindow" href="#FlaUIAppObject.GetMainWindow">&#x23;</a>
获取主窗口节点。  
参数@1应指定 FlaUI.UIA3.UIA3Automation 或 FlaUI.UIA2.UIA2Automation 创建的对象。  
参数 @waitTimeout 可选用一个 System.TimeSpan 对象指定等待时间

### FlaUIAppObject.HasExited <a id="FlaUIAppObject.HasExited" href="#FlaUIAppObject.HasExited">&#x23;</a>
是否已退出

### FlaUIAppObject.IsStoreApp <a id="FlaUIAppObject.IsStoreApp" href="#FlaUIAppObject.IsStoreApp">&#x23;</a>
是否 UWP 应用

### FlaUIAppObject.Kill() <a id="FlaUIAppObject.Kill" href="#FlaUIAppObject.Kill">&#x23;</a>
杀除进程

### FlaUIAppObject.MainWindowHandle <a id="FlaUIAppObject.MainWindowHandle" href="#FlaUIAppObject.MainWindowHandle">&#x23;</a>
主窗口句柄

### FlaUIAppObject.Name <a id="FlaUIAppObject.Name" href="#FlaUIAppObject.Name">&#x23;</a>
进程名称

### FlaUIAppObject.ProcessId <a id="FlaUIAppObject.ProcessId" href="#FlaUIAppObject.ProcessId">&#x23;</a>
进程 ID

### FlaUIAppObject.WaitWhileBusy() <a id="FlaUIAppObject.WaitWhileBusy" href="#FlaUIAppObject.WaitWhileBusy">&#x23;</a>
如果进程忙则等待。  
可选用参数 @1 可选用一个 System.TimeSpan 对象指定等待时间

### FlaUIAppObject.WaitWhileMainHandleIsMissing() <a id="FlaUIAppObject.WaitWhileMainHandleIsMissing" href="#FlaUIAppObject.WaitWhileMainHandleIsMissing">&#x23;</a>
等待创建主窗口。  
可选用参数 @1 可选用一个 System.TimeSpan 对象指定等待时间

## FlaUIButtonObject 成员列表 <a id="FlaUIButtonObject" href="#FlaUIButtonObject">&#x23;</a>

### FlaUIButtonObject.Invoke() <a id="FlaUIButtonObject.Invoke" href="#FlaUIButtonObject.Invoke">&#x23;</a>
默认方法

### FlaUIButtonObject.Text <a id="FlaUIButtonObject.Text" href="#FlaUIButtonObject.Text">&#x23;</a>
获取文本

## FlaUICheckBoxObject 成员列表 <a id="FlaUICheckBoxObject" href="#FlaUICheckBoxObject">&#x23;</a>

### FlaUICheckBoxObject.IsChecked <a id="FlaUICheckBoxObject.IsChecked" href="#FlaUICheckBoxObject.IsChecked">&#x23;</a>
是否选中

### FlaUICheckBoxObject.Text <a id="FlaUICheckBoxObject.Text" href="#FlaUICheckBoxObject.Text">&#x23;</a>
获取文本

## FlaUIConditionObject 成员列表 <a id="FlaUIConditionObject" href="#FlaUIConditionObject">&#x23;</a>

### FlaUIConditionObject.And() <a id="FlaUIConditionObject.And" href="#FlaUIConditionObject.And">&#x23;</a>
逻辑与，参数 @1 可指定 By 函数返回的其他搜索条件对象

### FlaUIConditionObject.Not() <a id="FlaUIConditionObject.Not" href="#FlaUIConditionObject.Not">&#x23;</a>
逻辑取反

### FlaUIConditionObject.Or() <a id="FlaUIConditionObject.Or" href="#FlaUIConditionObject.Or">&#x23;</a>
逻辑或，参数 @1 可指定 By 函数返回的其他搜索条件对象

## FlaUIElementObject 成员列表 <a id="FlaUIElementObject" href="#FlaUIElementObject">&#x23;</a>

### FlaUIElementObject.* <a id="FlaUIElementObject.any" href="#FlaUIElementObject.any">&#x23;</a>
[返回对象:FlaUIElementObject](#FlaUIElementObject)

### FlaUIElementObject.ActualHeight <a id="FlaUIElementObject.ActualHeight" href="#FlaUIElementObject.ActualHeight">&#x23;</a>
高度

### FlaUIElementObject.ActualWidth <a id="FlaUIElementObject.ActualWidth" href="#FlaUIElementObject.ActualWidth">&#x23;</a>
宽度

### FlaUIElementObject.AutomationId <a id="FlaUIElementObject.AutomationId" href="#FlaUIElementObject.AutomationId">&#x23;</a>
自动化 ID

### FlaUIElementObject.BoundingRectangle <a id="FlaUIElementObject.BoundingRectangle" href="#FlaUIElementObject.BoundingRectangle">&#x23;</a>
节点所在的区块。  
注意所有 mouse 库函数都支持以此结构体转换为区块中点坐标

### FlaUIElementObject.Capture() <a id="FlaUIElementObject.Capture" href="#FlaUIElementObject.Capture">&#x23;</a>
截图并返回 System.Drawing.Bitmap 对象

### FlaUIElementObject.CaptureToFile() <a id="FlaUIElementObject.CaptureToFile" href="#FlaUIElementObject.CaptureToFile">&#x23;</a>
截图到文件。  
参数指定文件路径。  
如果路径使用了 aardio 规则，可用 io.fullpath 先转换一下

### FlaUIElementObject.ClassName <a id="FlaUIElementObject.ClassName" href="#FlaUIElementObject.ClassName">&#x23;</a>
类名

### FlaUIElementObject.ControlType <a id="FlaUIElementObject.ControlType" href="#FlaUIElementObject.ControlType">&#x23;</a>
控件类型，这个属型这是一个枚举数值。  

改用 Properties.ControlType ，并将其传入 tostring 函数  
可得到英文字符串表示的控件类型

### FlaUIElementObject.FindAllByXPath("字符串参数") <a id="FlaUIElementObject.FindAllByXPath" href="#FlaUIElementObject.FindAllByXPath">&#x23;</a>
使用参数 @1 指定的 XPath 表达式查找并返回找到的节点数组。  
调用 FindAllByXPath 函数的元素为 XPath 根元素。  

获取所有子节点可使用 FindAllChildren 函数

### FlaUIElementObject.FindAllByXPath() <a id="FlaUIElementObject.FindAllByXPath" href="#FlaUIElementObject.FindAllByXPath">&#x23;</a>
[返回对象:FlaUIElementObject](#FlaUIElementObject)

### FlaUIElementObject.FindAllChildren() <a id="FlaUIElementObject.FindAllChildren" href="#FlaUIElementObject.FindAllChildren">&#x23;</a>
返回包含所有子节点的数组

### FlaUIElementObject.FindFirstByXPath("字符串参数") <a id="FlaUIElementObject.FindFirstByXPath" href="#FlaUIElementObject.FindFirstByXPath">&#x23;</a>
使用参数 @1 指定的 XPath 表达式查找并返回找到的第一个节点。  
调用 FindFirstByXPath 函数的元素为 XPath 根元素。

### FlaUIElementObject.FindFirstByXPath() <a id="FlaUIElementObject.FindFirstByXPath" href="#FlaUIElementObject.FindFirstByXPath">&#x23;</a>
[返回对象:FlaUIElementObject](#FlaUIElementObject)

### FlaUIElementObject.FindFirstDescendant() <a id="FlaUIElementObject.FindFirstDescendant" href="#FlaUIElementObject.FindFirstDescendant">&#x23;</a>
[返回对象:FlaUIElementObject](#FlaUIElementObject)

### FlaUIElementObject.FindFirstDescendant(condition) <a id="FlaUIElementObject.FindFirstDescendant" href="#FlaUIElementObject.FindFirstDescendant">&#x23;</a>

```aardio
FlaUIElementObject.FindFirstDescendant(   
	automation.By( Name = "输入";ControlType="Edit")/*查找后代节点。  
automation 请更换为当前使用的 FlaUI.UIA3.UIA3Automation 或 FlaUI.UIA2.UIA2Automation 对象*/  
)
```

### FlaUIElementObject.Focus() <a id="FlaUIElementObject.Focus" href="#FlaUIElementObject.Focus">&#x23;</a>
如果是窗口调用 SetForeground 函数前置，  
否则调用 FocusNative 设为输入焦点

### FlaUIElementObject.FocusNative() <a id="FlaUIElementObject.FocusNative" href="#FlaUIElementObject.FocusNative">&#x23;</a>
设为输入焦点

### FlaUIElementObject.HelpText <a id="FlaUIElementObject.HelpText" href="#FlaUIElementObject.HelpText">&#x23;</a>
帮助文本

### FlaUIElementObject.IsEnabled <a id="FlaUIElementObject.IsEnabled" href="#FlaUIElementObject.IsEnabled">&#x23;</a>
是否启用

### FlaUIElementObject.ItemStatus <a id="FlaUIElementObject.ItemStatus" href="#FlaUIElementObject.ItemStatus">&#x23;</a>
状态，字符串

### FlaUIElementObject.Name <a id="FlaUIElementObject.Name" href="#FlaUIElementObject.Name">&#x23;</a>
名称

### FlaUIElementObject.Parent <a id="FlaUIElementObject.Parent" href="#FlaUIElementObject.Parent">&#x23;</a>
父节点  

[返回对象:FlaUIElementObject](#FlaUIElementObject)

### FlaUIElementObject.Patterns <a id="FlaUIElementObject.Patterns" href="#FlaUIElementObject.Patterns">&#x23;</a>
在 aardio 中无法直接使用此接口。  
可参考 FlaUI.UIA3.Caret 源码通过 C&num; 调用 Patterns 接口。  
或者用 FlaUI.As 系列函数转换为控件以后再直接调用相关属性方法。

### FlaUIElementObject.Properties <a id="FlaUIElementObject.Properties" href="#FlaUIElementObject.Properties">&#x23;</a>
元素属性。  
可用属性参考: https://github.com/FlaUI/FlaUI/blob/master/src/FlaUI.Core/FrameworkAutomationElementBase.Properties.cs#L77   

[返回对象:FlaUiPropertyObject](#FlaUiPropertyObject)

### FlaUIElementObject.SetForeground() <a id="FlaUIElementObject.SetForeground" href="#FlaUIElementObject.SetForeground">&#x23;</a>
前置窗口

## FlaUIRadioButtonObject 成员列表 <a id="FlaUIRadioButtonObject" href="#FlaUIRadioButtonObject">&#x23;</a>

### FlaUIRadioButtonObject.IsChecked <a id="FlaUIRadioButtonObject.IsChecked" href="#FlaUIRadioButtonObject.IsChecked">&#x23;</a>
是否选中

## FlaUITextBoxObject 成员列表 <a id="FlaUITextBoxObject" href="#FlaUITextBoxObject">&#x23;</a>

### FlaUITextBoxObject.Enter() <a id="FlaUITextBoxObject.Enter" href="#FlaUITextBoxObject.Enter">&#x23;</a>
输入文本

### FlaUITextBoxObject.IsReadOnly <a id="FlaUITextBoxObject.IsReadOnly" href="#FlaUITextBoxObject.IsReadOnly">&#x23;</a>
是否只读

### FlaUITextBoxObject.Text <a id="FlaUITextBoxObject.Text" href="#FlaUITextBoxObject.Text">&#x23;</a>
获取文本

## FlaUiPropertyObject 成员列表 <a id="FlaUiPropertyObject" href="#FlaUiPropertyObject">&#x23;</a>

### FlaUiPropertyObject.ControlType <a id="FlaUiPropertyObject.ControlType" href="#FlaUiPropertyObject.ControlType">&#x23;</a>
控件类型，这是一个对象。  
此对象可传入 tostring 函数转换为英文字符串。  
也可用对象的 Value 成员返回枚举数值

### FlaUiPropertyObject.IsOffscreen <a id="FlaUiPropertyObject.IsOffscreen" href="#FlaUiPropertyObject.IsOffscreen">&#x23;</a>
在屏幕上是否不可见。  
此对象需用 Value 字段返回布尔值。

## FlaUiPropertyObject.IsContentElement 成员列表 <a id="FlaUiPropertyObject.IsContentElement" href="#FlaUiPropertyObject.IsContentElement">&#x23;</a>

是否内容展示元素 。  
此对象需用 Value 字段返回布尔值。

### FlaUiPropertyObject.IsContentElement.Value <a id="FlaUiPropertyObject.IsContentElement.Value" href="#FlaUiPropertyObject.IsContentElement.Value">&#x23;</a>
是否密码输入框

## FlaUiPropertyObject.IsControlElement 成员列表 <a id="FlaUiPropertyObject.IsControlElement" href="#FlaUiPropertyObject.IsControlElement">&#x23;</a>

是否控件。  
此对象需用 Value 字段返回布尔值。

### FlaUiPropertyObject.IsControlElement.Value <a id="FlaUiPropertyObject.IsControlElement.Value" href="#FlaUiPropertyObject.IsControlElement.Value">&#x23;</a>
是否密码输入框

## FlaUiPropertyObject.IsPassword 成员列表 <a id="FlaUiPropertyObject.IsPassword" href="#FlaUiPropertyObject.IsPassword">&#x23;</a>

是否密码输入框。  
此对象需用 Value 字段返回布尔值。

### FlaUiPropertyObject.IsPassword.Value <a id="FlaUiPropertyObject.IsPassword.Value" href="#FlaUiPropertyObject.IsPassword.Value">&#x23;</a>
在屏幕上是否不可见，不可见为 true

是否密码输入框

## FlaUiPropertyObject.IsPeripheral 成员列表 <a id="FlaUiPropertyObject.IsPeripheral" href="#FlaUiPropertyObject.IsPeripheral">&#x23;</a>

是否外围 UI 组件，例如菜单或浮动通知。  
此对象需用 Value 字段返回布尔值。

### FlaUiPropertyObject.IsPeripheral.Value <a id="FlaUiPropertyObject.IsPeripheral.Value" href="#FlaUiPropertyObject.IsPeripheral.Value">&#x23;</a>
是否外围 UI 组件

## FlaUiPropertyObject.LocalizedControlType 成员列表 <a id="FlaUiPropertyObject.LocalizedControlType" href="#FlaUiPropertyObject.LocalizedControlType">&#x23;</a>

本地化的控件类型，中文字符串。  
此对象可传入 tostring 函数转换为字符串。  
也可用对象的 Value 成员返回字符串值

### FlaUiPropertyObject.LocalizedControlType.Value <a id="FlaUiPropertyObject.LocalizedControlType.Value" href="#FlaUiPropertyObject.LocalizedControlType.Value">&#x23;</a>
本地化的控件类型（字符串值）

## FlaUiPropertyObject.NativeWindowHandle 成员列表 <a id="FlaUiPropertyObject.NativeWindowHandle" href="#FlaUiPropertyObject.NativeWindowHandle">&#x23;</a>

原生窗口句柄。  
此对象可传入 tonumber 函数转换为数值。  
也可用对象的 Value 成员返回数值

### FlaUiPropertyObject.NativeWindowHandle.Value <a id="FlaUiPropertyObject.NativeWindowHandle.Value" href="#FlaUiPropertyObject.NativeWindowHandle.Value">&#x23;</a>
原生窗口句柄（数值）

## FlaUiPropertyObject.ProcessId 成员列表 <a id="FlaUiPropertyObject.ProcessId" href="#FlaUiPropertyObject.ProcessId">&#x23;</a>

进程 ID。  
此对象可传入 tonumber 函数转换为数值。  
也可用对象的 Value 成员返回数值

### FlaUiPropertyObject.ProcessId.Value <a id="FlaUiPropertyObject.ProcessId.Value" href="#FlaUiPropertyObject.ProcessId.Value">&#x23;</a>
进程 ID（数值）
