تحديث إعدادات الخط من جانب العميل
Contents
[
Hide
]
يناقش هذا الموضوع تغيير إعدادات الخط من جانب العميل في عنصر تحكم Aspose.Cells.GridWeb.
Aspose.Cells GridWeb يدعم الآن تغيير إعدادات الخط من جانب العميل. لهذا ، يوفر API الوظائف التالية
- updateCellFontStyle: Params - r / i / b / ib لـ عادي / مائل / غامق / مائل && غامق
- updateCellFontSize: Params - fontname ، إلخ “النظام”
- updateCellFontName: Params - Fontize ، إلخ. “12 نقطة”
- updateCellFontColor: Params - لا شيء / u / l / ul / بدون / تسطير / مخطط / تسطير && خط
- updateCellFontLine: Params - لون html مثل # aa22ee أو اسم لون معروف جيدًا مثل الأخضر والأحمر …
- updateCellBackGroundColor: Params - لون html مثل # aa22ee أو اسم لون معروف جيدًا مثل الأخضر والأحمر …
يوضح مقتطف الشفرة التالي تغيير إعدادات الخط من جانب العميل في GridWeb.
عينة من الرموز
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
<script> | |
function makeFontItalic(){ | |
gridwebinstance.getByIndex(0).rangeupdate(updateCellFontStyle, "i"); | |
} | |
function makeFontBold(){ | |
gridwebinstance.getByIndex(0).rangeupdate(updateCellFontStyle, "b"); | |
} | |
function changeFontSize(){ | |
gridwebinstance.getByIndex(0).rangeupdate(updateCellFontSize, "5pt"); | |
} | |
function changeFontFamily(){ | |
gridwebinstance.getByIndex(0).rangeupdate(updateCellFontName, "Corbel Light"); | |
} | |
function changeFontColor(){ | |
gridwebinstance.getByIndex(0).rangeupdate(updateCellFontColor, "green"); | |
} | |
function changeFontBackgroundColor(){ | |
gridwebinstance.getByIndex(0).rangeupdate(updateCellBackGroundColor, "yellow"); | |
} | |
</script> |