Dlgprops

From Visual DialogShell Wiki
Jump to navigation Jump to search
function dlgprops ($a,$b,$c) {
   if ($b -eq $null) {
       return $a | Get-Member | Out-String
   }
   else {
       return ($a | select -ExpandProperty $b | Out-String).Trim()
   }
<#
   .SYNOPSIS
   Returns properties (1) or property (2 params) of a dialog element.
    
   .DESCRIPTION
    VDS
   console $(dlgprops $textbox1)
   $textbox1text = $(dlgprops $textbox1 text)
    
   .LINK
   https://dialogshell.com/vds/help/index.php/dlgprops
#>
}