Click or drag to resize
Xcalibur Systems LLC Logo

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.Windows
Assembly: 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
)

Parameters

windowHandle  IntPtr
A handle to the window or control.

Return Value

Int32
See Also