UltraMessageBoxManager のコンテンツ領域に表示されるテキストおよびそのフォーマットはUltraMessageBoxInfo の TextFormatted プロパティから設定することができます。
TextFormatted プロパティではタグと属性を使用してテキストをフォーマットすることができます。
UltraMessageBoxInfo messageinfo = new UltraMessageBoxInfo(); messageinfo.TextFormatted = "<font face='MS Mincho' size='15pt'>Minchoテキスト</font> <font color='red'>赤いテキスト</font> <b><i>斜体で太字</i></b>"; this.ultraMessageBoxManager1.ShowMessageBox(messageinfo);
TextFormatted プロパティで使用可能なタグと属性についてはこちらをご参照ください。
テキストとハイパーリンクのフォーマッティング
https://jp.infragistics.com/help/winforms/winformattedlinklabel-formatting-text-and-hyperlinks
ヘッダーについては HeaderAppearance.FontData プロパティからフォントデータを設定することができます。
messageinfo.Header = "メッセージ ヘッダー"; messageinfo.HeaderAppearance.FontData.Name = "MS Gothic"; messageinfo.HeaderAppearance.FontData.SizeInPoints = 8;
