Esempio n. 1
0
        public bool SetTextColor(Color color)
        {
            var hr = _previewHandlerVisuals?.SetTextColor(color);

            return(hr.HasValue && hr.Value.Succeeded);
        }
Esempio n. 2
0
        /// <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);
        }