|
WindowHelperGetWindowTextLength Method |
Retrieves the length, in characters, of the specified window's title bar text (if the
window has a title bar). If the specified window is a control, the function retrieves the
length of the text within the control. However, GetWindowTextLength cannot retrieve the
length of the text of an edit control in another application.
GetWindowTextLength function Namespace: Xcalibur.NativeMethods.V2.WindowsAssembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax [DllImportAttribute("user32.dll", CharSet = CharSet.Unicode)]
public static int GetWindowTextLength(
IntPtr windowHandle
)
<DllImportAttribute("user32.dll", CharSet := CharSet.Unicode>]
Public Shared Function GetWindowTextLength (
windowHandle As IntPtr
) As Integer
public:
[DllImportAttribute(L"user32.dll", CharSet = CharSet::Unicode)]
static int GetWindowTextLength(
IntPtr windowHandle
)
[<DllImportAttribute("user32.dll", CharSet = CharSet.Unicode)>]
static member GetWindowTextLength :
windowHandle : IntPtr -> int
Parameters
- windowHandle IntPtr
- A handle to the window or control.
Return Value
Int32See Also