Xamarin.Android | ComponentOne
C1.Android.Core Assembly / C1.Android.Core Namespace / C1ScrollViewer Class / RequestFocus Method / RequestFocus(FocusSearchDirection,Rect) Method


In This Topic
    RequestFocus(FocusSearchDirection,Rect) Method
    In This Topic
    Syntax
    'Declaration
     
    
    <Android.Runtime.RegisterAttribute("requestFocus", 
       "(ILandroid/graphics/Rect;)Z", 
       "GetRequestFocus_ILandroid_graphics_Rect_Handler")>
    Public Overloads Overridable Function RequestFocus( _
       ByVal direction As Android.Views.FocusSearchDirection, _
       ByVal previouslyFocusedRect As Android.Graphics.Rect _
    ) As Boolean
    'Usage
     
    
    Dim instance As C1ScrollViewer
    Dim direction As Android.Views.FocusSearchDirection
    Dim previouslyFocusedRect As Android.Graphics.Rect
    Dim value As Boolean
     
    value = instance.RequestFocus(direction, previouslyFocusedRect)
    [Android.Runtime.Register("requestFocus", 
       "(ILandroid/graphics/Rect;)Z", 
       "GetRequestFocus_ILandroid_graphics_Rect_Handler")]
    public virtual bool RequestFocus( 
       Android.Views.FocusSearchDirection direction,
       Android.Graphics.Rect previouslyFocusedRect
    )

    Parameters

    direction
    previouslyFocusedRect
    See Also