GetViewByTitleText Method
Gets the view that matches the title text.
'Declaration
Function GetViewByTitleText( _
ByVal As String _
) As IView
'Usage
Dim instance As IFrame
Dim titleText As String
Dim value As IView
value = instance.GetViewByTitleText(titleText)
Parameters
- titleText
- The title text to match on.
Return Value
The View that matches the specified title text, if any.
void Sample_Frame_GetViewByTitleText()
{
//You can alert users by placing custom text in a view's titleText.
//If you know the titleText, you can retrieve the view object with it.
Application app = MyReflection.ActiveApplication;
IFrame frame = (IFrame) app.GetObject("Frame");
frame.SelectedView.TitleText = "Alert!";
//...
IView view = (IView)frame.GetViewByTitleText("Alert!");
view.Focus();
}