Formattare un appuntamento in Aspose.Email

Aspose.Email - Formattazione di un Appuntamento

La classe AppointmentFormattingOptions può essere usata per formattare l’appuntamento in formato testo e 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));

Scarica il codice in esecuzione

Scarica il codice di esempio