تحديث إعدادات الخط من جانب العميل

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.

عينة من الرموز

// 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>