Ejemplo n.º 1
0
 /// <summary>
 /// Set the explicit color for |commandId| and |index| to |color|. Specify a
 /// |color| value of 0 to remove the explicit color. Specify an |index| value
 /// of -1 to set the default color for items that do not have an explicit color
 /// set. If no explicit color or default color is set for |colorType| then the
 /// system color will be used. Returns true (1) on success.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_menu_model_capi.h">cef/include/capi/cef_menu_model_capi.h</see>.
 /// </remarks>
 public bool SetColorAt(int index, CfxMenuColorType colorType, CfxColor color)
 {
     return(0 != CfxApi.MenuModel.cfx_menu_model_set_color_at(NativePtr, index, (int)colorType, CfxColor.Unwrap(color)));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Set the explicit color for |commandId| and |colorType| to |color|.
 /// Specify a |color| value of 0 to remove the explicit color. If no explicit
 /// color or default color is set for |colorType| then the system color will
 /// be used. Returns true (1) on success.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_menu_model_capi.h">cef/include/capi/cef_menu_model_capi.h</see>.
 /// </remarks>
 public bool SetColor(int commandId, CfxMenuColorType colorType, CfxColor color)
 {
     return(0 != CfxApi.MenuModel.cfx_menu_model_set_color(NativePtr, commandId, (int)colorType, CfxColor.Unwrap(color)));
 }