MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SelectFirstItem

Method SelectFirstItem

Source/Editor/Content/GUI/ContentView.cs:544–555  ·  view source on GitHub ↗

Gives focus and selects the first item in the view.

()

Source from the content-addressed store, hash-verified

542 /// Gives focus and selects the first item in the view.
543 /// </summary>
544 public void SelectFirstItem()
545 {
546 if (_items.Count > 0)
547 {
548 _items[0].Focus();
549 Select(_items[0]);
550 }
551 else
552 {
553 Focus();
554 }
555 }
556
557 /// <summary>
558 /// Refreshes thumbnails of all items in the <see cref="ContentView"/>.

Callers 3

NavigateBackwardMethod · 0.80
NavigateForwardMethod · 0.80
OpenMethod · 0.80

Calls 2

FocusFunction · 0.85
FocusMethod · 0.45

Tested by

no test coverage detected