با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
blockly > blockRendering > RenderInfo > getSpacerRowWidth_
متد blockRendering.RenderInfo.getSpacerRowWidth_().
عرض یک ردیف فاصله را محاسبه کنید.
امضا:
protected getSpacerRowWidth_(_prev: Row, _next: Row): number;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
_قبلی | ردیف | ردیف قبل از اسپیسر. |
_بعدی | ردیف | ردیف بعد از اسپیسر. |
برمی گرداند:
شماره
عرض مورد نظر ردیف فاصله بین این دو ردیف.
،
blockly > blockRendering > RenderInfo > getSpacerRowWidth_
متد blockRendering.RenderInfo.getSpacerRowWidth_().
عرض یک ردیف فاصله را محاسبه کنید.
امضا:
protected getSpacerRowWidth_(_prev: Row, _next: Row): number;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
_قبلی | ردیف | ردیف قبل از اسپیسر. |
_بعدی | ردیف | ردیف بعد از اسپیسر. |
برمی گرداند:
شماره
عرض مورد نظر ردیف فاصله بین این دو ردیف.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[],["The `getSpacerRowWidth_` method, part of the `RenderInfo` class, calculates the width required for a spacer row. It accepts two `Row` objects, `_prev` and `_next`, representing the rows immediately before and after the spacer. The method determines and returns a numerical value representing the optimal width for the spacer row positioned between these two input rows. The output of this function is the calculated width.\n"]]