1
A
回答
0
如果ProductList
是View
你可以改變其填充和保證金是這樣的:
ProductList.Css.Padding = 10;
ProductList.Css.Margin = 20;
0
或者您可以使用擴展方法,其提供了流暢的API(如它們返回的對象回來)像如下:
ProductList.Padding(10).Margin(20);
這些擴展方法也允許你設置特定的邊。例如:
ProductList.Padding(top: 10, right: 15)
.Margin(vertical: 20); // <-- this sets both top and bottom
相關問題
- 1. BaseAdapter元素邊距
- 2. 如何設置統一邊框邊距?
- 3. 邊距設置爲TextView的
- 4. 如何在UITextView中設置邊距?
- 5. 如何在NSTableView中設置列邊距?
- 6. 如何在ggplot2中設置外邊距?
- 7. 如何在GTK2中設置GtkSpinButton邊距?
- 8. CSS div邊距自動,無法在創建邊距中的位置元素
- 9. 從C#代碼設置邊距
- 10. 如何在android中使用代碼在imageview上設置邊距?
- 11. 負邊距是如何設置頁面中心的元素的?
- 12. H1元素的邊距
- 13. 元素的頂邊距
- 14. 如何使用代碼設置ImageView的重力(或邊距)?
- 15. 帶有「內置」邊距的HTML元素
- 16. 在AlertDialog中設置EditText的邊距
- 17. 邊距或填充間距?
- 18. 元素在RelativeLayout上設置邊距後消失
- 19. 負邊距「懸停」div落後元素
- 20. 在Rave Reports中設置頁邊距
- 21. 如何在TabLayout的每一邊設置頁邊距
- 22. 如何設置UITextView的右邊距?
- 23. 如何設置QGridLayout邊距的顏色?
- 24. 如何設置WebStorm Editor的左邊距?
- 25. ConstraintLayout中的邊距行爲
- 26. Android中的邊距
- 27. 替代負邊距
- 28. 如何使用NReco.PdfGenerator設置頁邊距?
- 29. 如何分別設置StackPanels邊距?
- 30. 是否可以將邊框嵌入元素中,留下邊距?