Click or drag to resize

RichText SetFont Method (Int32, Int32, ExcelFont)

Sets font for specified range of characters.

Namespace: Spire.Xls
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public void SetFont(
	int startPos,
	int endPos,
	ExcelFont font
)

Parameters

startPos
Type: System Int32
Position of first character.
endPos
Type: System Int32
Position of last character.
font
Type: Spire.Xls ExcelFont
Font to set.
See Also