当我运行下面的代码时,我想在我的形状中填充 (255,168,0) 颜色,它给了我一点浅蓝色的颜色。
private void Shape_fill_Click(object sender, RibbonControlEventArgs e)
{
Color_palette.Visible = true;
type = "Fill";
}
private void btn_Orange_Click(object sender, RibbonControlEventArgs e)
{
if(type=="Fill")
{
PowerPoint.Application ppApp = Globals.ThisAddIn.Application;
PowerPoint.ShapeRange ppshr = ppApp.ActiveWindow.Selection.ShapeRange;
ppshr.Fill.ForeColor.RGB = System.Drawing.Color.FromArgb(255,168,0).ToArgb();
}
问题:除了浅蓝色之外,我怎样才能获得不同或变化的颜色?