[This is preliminary documentation and is subject to change.]
Gets or sets text associated with the window
Namespace: Tools.WindowsT.NativeTAssembly: 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 windowReturn 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
| Exception | Condition |
|---|---|
| Tools.API..::..Win32APIException | Setting or obtaining of text failed. ie. Handle is invalid |