/// <summary> /// Sets the font of the entire string. /// </summary> /// <param name="font">The font to use.</param> public void ApplyFont(Npoi.Core.SS.UserModel.IFont font) { ApplyFont(0, _string.CharCount, font); }
/// <summary> /// Applies a font to the specified Chars of a string. /// </summary> /// <param name="startIndex">The start index to apply the font to (inclusive).</param> /// <param name="endIndex"> The end index to apply to font to (exclusive).</param> /// <param name="font">The index of the font to use.</param> public void ApplyFont(int startIndex, int endIndex, Npoi.Core.SS.UserModel.IFont font) { ApplyFont(startIndex, endIndex, font.Index); }