Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. tmpRange.Find.Replacement.Font.Color = Color.FromArgb(100, 150, 75);
  2.  
  3. Color c = Colors.Blue;
  4. var wdc = (Microsoft.Office.Interop.Word.WdColor)(c.R + 0x100 * c.G + 0x10000 * c.B);
  5.  
  6. using Microsoft.VisualBasic;
  7.  
  8. int rgbColor = Information.RGB(100, 150, 75);
  9. Word.WdColor wdColor = (Word.WdColor)rgbColor;
  10.  
  11. public static void ColorRGB(this Wd.Font font, int red, int green, int blue)
  12. {
  13. font.Color = (Wd.WdColor)(red + 0x100 * green + 0x10000 * blue);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement