blockly > IToolbox > selectItemByPosition
مورد جعبه ابزار را بر اساس موقعیت آن در لیست موارد جعبه ابزار انتخاب می کند.
امضا:
selectItemByPosition(position: number): void;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
موقعیت | شماره | موقعیت مورد برای انتخاب. |
برمی گرداند:
باطل
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-04 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-04 بهوقت ساعت هماهنگ جهانی."],[[["The `selectItemByPosition()` method selects an item within the toolbox based on its position in the list."],["It takes one parameter: `position`, which is a number representing the position of the item to be selected."],["Calling this method does not return any value (void)."]]],["The `IToolbox.selectItemByPosition()` method selects a toolbox item based on its numerical position within the list of items. It accepts a single parameter, `position`, which is a number representing the desired item's index. The method returns `void`, indicating it does not return any value upon completion. The action is to choose the toolbox item at the specified position.\n"]]