GetPropertyMap

Returns a map of all property names and values from a window or control.

You can work with values in the PropertyMap object without calling the target application again. Use the following statements to return additional information about the values in the PropertyMap: Property - PropertyMap, HasProperty - PropertyMap, and Size.

Syntax

GetPropertyMap()

Supported objects

Browser, Button, Calendar, Cell, CheckBox, ColumnHeader, ComboBox, ContextMenu, Control, DateTimePicker, EditBox, Grid, HTMLElement, HTMLLink, HTMLTable, Image, Item, Label, Link, ListBox, ListView, Menu, NavigationField, PopupMenu, ProgressBar, RadioButton, Row, RowHeader, ScrollBar, Slider, SpinBox, SubItem, Tab, TabBar, ToolBar, Tree, Window

Return value

Value Description
Value Map of all property names and values from the window or control.

Example

propertyMap = Window("Window").Control("control1").GetPropertyMap()

textVal = propertyMap.Property("Text")

valToCheck = propertyMap.Property("PropertyNameMayNotExist", "Value to return if specified value not found.")