|  | ■No91188 (Hongliang さん) に返信 > こんな感じですかね。
 >
 > IXLCell cell = ...; // 適当にセルを取ってくる
 > IXLRichText rich = cell.RichText;
 > IXLFormattedText<IXLRichText> text = rich.Substring(index, length);
 > text.SetColor(XLColor.Red);
 >
 > // これでSaveしたらLibreOfficeで開く時に文句を言われるようになってしまった。
 
 
 Hongliangさん
 ありがとうございます!完璧です!
 以下のコードで指定の箇所に適用できました
 
 IXLCell cell = testSheet.Cell("A1");
 IXLRichText rich = cell.RichText;
 IXLFormattedText<IXLRichText> text = rich.Substring(0, 30);
 text.SetFontColor(XLColor.Red);
 
 Cellの指定の方法にこのような方法があったのは知りませんでした。
 おかげでさらに知識を広げるきっかけにもなりました。とても感謝します!
 
 |