[This is preliminary documentation and is subject to change.]

Gets or sets text associated with the window

Namespace: Tools.WindowsT.NativeT
Assembly: Tools.Win (in Tools.Win.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
[LCategoryAttribute(typeof(ControlsWin), "WindowProperties_c", "Window properties", 
	LCategoryAttribute..::..enmLookUpOrder.ResourceFirst)]
public string Text { get; set; }
Visual Basic
<LCategoryAttribute(GetType(ControlsWin), "WindowProperties_c",  _
	"Window properties", LCategoryAttribute..::..enmLookUpOrder.ResourceFirst)> _
Public Property Text As String
	Get
	Set
Visual C++
[LCategoryAttribute(typeof(ControlsWin), L"WindowProperties_c", 
	L"Window properties", LCategoryAttribute..::..enmLookUpOrder::ResourceFirst)]
public:
property String^ Text {
	String^ get ();
	void set (String^ value);
}
F#
[<LCategoryAttribute(typeof(ControlsWin), "WindowProperties_c", 
    "Window properties", LCategoryAttribute..::..enmLookUpOrder.ResourceFirst)>]
member Text : string with get, set
JScript
function get Text () : String
function set Text (value : String)

Field Value

New text of window

Return Value

Current text of the window

Remarks

For windows that represents form it is text from title bar, for other controls like labels it is text of the control. See also . This property can can get/set text for all windows in the same process as it is called from and text of windows that has title bar (forms) from any process.

Exceptions

ExceptionCondition
Tools.API..::..Win32APIExceptionSetting or obtaining of text failed. ie. Handle is invalid

See Also