blockly > شريط التمرير > (أداة الإنشاء)
إنشاء مثيل جديد لفئة Scrollbar
Signature:
constructor(workspace: WorkspaceSvg, horizontal: boolean, opt_pair?: boolean, opt_class?: string, opt_margin?: number);
المعلمات
المعلمة |
النوع |
الوصف |
مساحة العمل |
WorkspaceSvg |
Workspace لربط شريط التمرير. |
horizontal |
منطقي |
True إذا كان أفقيًا، وfalse إذا كان عموديًا. |
opt_pair |
منطقي |
(اختياري) True إذا كان شريط التمرير جزءًا من زوج horiz/head. |
opt_class |
سلسلة |
(اختياري) الفئة التي سيتم تطبيقها على شريط التمرير هذا |
opt_margin |
الرقم |
(اختياري) الهامش المطلوب تطبيقه على شريط التمرير هذا. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-09-10 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-09-10 (حسب التوقيت العالمي المتفَّق عليه)"],[[["`Scrollbar` class constructor initializes a new scrollbar object within a specified workspace."],["It allows customization of orientation (horizontal or vertical), pairing with another scrollbar, styling through custom classes, and margin adjustments."],["The constructor requires a `WorkspaceSvg` object and a boolean indicating horizontal or vertical orientation, with optional parameters for pairing, styling, and margin."]]],[]]