mobileFX WebKitX CEF3 ActiveX 4.x
WebKitXCEF3Lib ActiveX Control / WebKitXCEF3 Object / SelFontColor Property
SelFontColor Property
Description

Sets or retrieves the Font Color of the current selection.

Property type
Read-write property
Syntax
Visual Basic
Public Property SelFontColor As String
Return Type

On read the property executes ExecCommand(EDIT_CMD_SEL_GET_FONT_COLOR).

On write the property executes ExecCommand(EDIT_CMD_SEL_SET_FONT_COLOR). 

Example
Private Sub mnuSelInfo_Click()
    On Error Resume Next
    WebKitX1.ExecCommandSetFocus = False
    AddLog "SelFontName=" & WebKitX1.SelFontName
    AddLog "SelFontSize=" & WebKitX1.SelFontSize
    AddLog "SelFontColor=" & WebKitX1.SelFontColor
    AddLog "SelFontBackColor=" & WebKitX1.SelFontBackColor
    AddLog "SelFontBold=" & WebKitX1.SelFontBold
    AddLog "SelFontItalic=" & WebKitX1.SelFontItalic
    AddLog "SelFontUnderline=" & WebKitX1.SelFontUnderline
    AddLog "SelStrikeThrough=" & WebKitX1.SelStrikeThrough
    WebKitX1.ExecCommandSetFocus = True
End Sub
See Also