public bool SetTextColor(Color color) { var hr = _previewHandlerVisuals?.SetTextColor(color); return(hr.HasValue && hr.Value.Succeeded); }
/// <summary> /// Sets the text color if the handler implements IPreviewHandlerVisuals. /// </summary> /// <param name="color">The text color.</param> /// <returns>Whether the call succeeds.</returns> public bool SetForeground(Color color) { var hr = visuals?.SetTextColor(ColorRefFromColor(color)); return(hr.HasValue && (int)hr.Value >= 0); }