Exemplo n.º 1
0
 public void SetCharFormat(bool fSelection, CHARFORMAT2W format)
 {
     format.cbSize = CHARFORMAT2W.SIZE;
     SendMessage(new HandleRef(this, Handle), EM_SETCHARFORMAT, (fSelection ? 1 : 0), ref format);
 }
Exemplo n.º 2
0
 public CHARFORMAT2W GetCharFormat(bool fSelection)
 {
     var format = new CHARFORMAT2W();
     format.cbSize = CHARFORMAT2W.SIZE;
     SendMessage(new HandleRef(this, Handle), EM_GETCHARFORMAT, (fSelection ? 1 : 0), ref format);
     return format;
 }