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
)
Public Sub SetFont (
startPos As Integer,
endPos As Integer,
font As ExcelFont
)
public:
void SetFont(
int startPos,
int endPos,
ExcelFont^ font
)
member SetFont :
startPos : int *
endPos : int *
font : ExcelFont -> unit
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