其实RichEidt可以对任意被选择的文字进行属性的设置,同一行当然可以了,如下:
RichEdit1.SelStart := 5;
RichEdit1.SelLength := 5;
RichEdit1.SelAttributes.Style := [fsBold];
RichEdit1.SelAttributes.Size := 12;
RichEdit1.SelAttributes.Color := clRed;
RichEdit1.SelStart := 15;
RichEdit1.SelLength := 5;
RichEdit1.SelAttributes.Style := [fsBold];
RichEdit1.SelAttributes.Size := 11;
RichEdit1.SelAttributes.Color := clBlue;