SetFocusedIndexByLocation(Point,Boolean) Method (WpfImageViewer)
Changes the the
FocusedIndex property to the index of image, which is located in specified point.
'Declaration
Public Function SetFocusedIndexByLocation( _
ByVal As System.Windows.Point, _
ByVal As Boolean _
) As Boolean
public bool SetFocusedIndexByLocation(
System.Windows.Point ,
bool
)
public: bool SetFocusedIndexByLocation(
System.Windows.Point ,
bool
)
public:
bool SetFocusedIndexByLocation(
System.Windows.Point ,
bool
)
Parameters
- location
- The location in viewer (control) space.
- disableAutoScrollToPage
- A value indicating whether the viewer should not scroll to the foused page automatically.
Return Value
True if focused index is changed; otherwise, false.
Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5