Aspose.Email で予定を書式設定

Aspose.Email - 予定のフォーマット

AppointmentFormattingOptions クラスは、予定をテキスト形式および HTML 形式でフォーマットするために使用できます。

Java


 Appointment appointment = Appointment.load(dataDir + "appointment.ics");

AppointmentFormattingOptions formattingOptions = new AppointmentFormattingOptions();

formattingOptions.setLocationFormat("Where: {0}");

formattingOptions.setTitleFormat("Subject: {0}");

formattingOptions.setDescriptionFormat("\r\n*~*~*~*~*~*~*~*~*~*\r\n{0}");

System.out.println(appointment.getAppointmentText(formattingOptions));

実行コードをダウンロード

サンプルコードをダウンロード