InfoConnect API Guide
Attachmate.Reflection.UserInterface Namespace / IFrame Interface / GetViewByTitleText Method
The title text to match on.
Example


In This Topic
    GetViewByTitleText Method
    In This Topic
    Gets the view that matches the title text.
    Syntax
    'Declaration
     
    
    Function GetViewByTitleText( _
       ByVal titleText As String _
    ) As IView
    'Usage
     
    
    Dim instance As IFrame
    Dim titleText As String
    Dim value As IView
     
    value = instance.GetViewByTitleText(titleText)
    IView GetViewByTitleText( 
       string titleText
    )

    Parameters

    titleText
    The title text to match on.

    Return Value

    The View that matches the specified title text, if any.
    Example
    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();
    }
    See Also