Click or drag to resize

CPDFEditTextAreaSetCurTextStyle Method

Sets the text style of the current position of text cursor.

Namespace:  ComPDFKit.PDFPage.Edit
Assembly:  ComPDFKit.NET (in ComPDFKit.NET.dll) Version: 2.2.0.0 (2.2.0.0)
Syntax
C#
public bool SetCurTextStyle(
	string fontName,
	float fontSize,
	byte r,
	byte g,
	byte b,
	byte transparency,
	bool isBold,
	bool isItalic
)

Parameters

fontName
Type: SystemString
Font name.
fontSize
Type: SystemSingle
Font size.
r
Type: SystemByte
Red value of the font color.
g
Type: SystemByte
Green value of the font color.
b
Type: SystemByte
Blue value of the font color.
transparency
Type: SystemByte
Font transparency.
isBold
Type: SystemBoolean
Font bold.
isItalic
Type: SystemBoolean
Font italic.

Return Value

Type: Boolean
Returns true on success, false on failure.
See Also